radv: make sure to emit cache flushes before starting a query
If the query pool has been previously resetted using the compute
shader path.
Fixes: a41e2e9cf5 ("radv: allow to use a compute shader for resetting the query pool")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105292
Cc: "18.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -1930,6 +1930,13 @@ VkResult radv_BeginCommandBuffer(
|
||||
|
||||
cmd_buffer->status = RADV_CMD_BUFFER_STATUS_RECORDING;
|
||||
|
||||
/* Force cache flushes before starting a new query in case the
|
||||
* corresponding pool has been resetted from a different command
|
||||
* buffer. This is because we have to flush caches between reset and
|
||||
* begin if the compute shader path has been used.
|
||||
*/
|
||||
cmd_buffer->pending_reset_query = true;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user