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" <mesa-stable@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Alex Smith <asmith@feralinteractive.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
bf2af063c3
commit
c133a3411b
1 changed files with 0 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue