summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-03-01 10:53:49 +0100
committerSamuel Pitoiset <[email protected]>2018-03-02 09:44:12 +0100
commitc133a3411bbf47c2ba7d9cdae7e35a64fe276068 (patch)
treef59f2ab26291a215350f2338f45e419a4b24f91b /src
parentbf2af063c3ac1ef7b948ddfb203aea04f857fc0f (diff)
radv: do not set pending_reset_query in BeginCommandBuffer()
This is just useless for two reasons: 1) flush_bits is not set accordingly, so nothing will be flushed in BeginQuery(). 2) we always flush caches in EndCommandBuffer(), so if a reset is done in a previous command buffer we are safe. Cc: "18.0" <[email protected]> Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Alex Smith <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index cfdc531acd5..2b41baea3d3 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -1930,13 +1930,6 @@ 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;
}