summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-03-01 10:53:49 +0100
committerEmil Velikov <[email protected]>2018-03-20 16:57:25 +0000
commitcdf1f442427d4670688ad6207f360e282b84eda7 (patch)
tree71b1c2f43d058a27f495bc73023b57e34e61d0ac /src/amd
parent6083211d8a81c13f2af55d92d1c30a45b25d34c0 (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]> (cherry picked from commit c133a3411bbf47c2ba7d9cdae7e35a64fe276068)
Diffstat (limited to 'src/amd')
-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 a966ba306c6..777f3dc4c9a 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -2348,13 +2348,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;
}