diff options
author | Samuel Pitoiset <[email protected]> | 2018-12-05 11:34:39 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-12-05 13:05:55 +0100 |
commit | e8997287695119e61709daa89ded28e393ece533 (patch) | |
tree | 812a883e0178f83fc456f27c69247b5b96df521c /src/amd/vulkan/radv_query.c | |
parent | 9a7b3199037ac4b798974f561067cb3d66be8010 (diff) |
radv: reset pending_reset_query when flushing caches
If the driver used a compute shader for resetting a query pool,
it should be completed when caches are flushed.
This might reduce the number of stalls if operations are done
between vkCmdResetQueryPool() and vkCmdBeginQuery()
(or vkCmdWriteTimestamp()).
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Alex Smith <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index e226bcef6a9..276cc1c42d7 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -1447,7 +1447,6 @@ static void emit_query_flush(struct radv_cmd_buffer *cmd_buffer, * because we use a CP dma clear. */ si_emit_cache_flush(cmd_buffer); - cmd_buffer->pending_reset_query = false; } } } |