radv: Always call si_emit_cache_flush before writing timestamps
In case of barriers with TOP_OF_PIPE as dst stage, writing timestamps immediately would be invalid. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22823>
This commit is contained in:

committed by
Marge Bot

parent
b59935e2e7
commit
284e604872
@@ -2145,7 +2145,7 @@ radv_CmdWriteTimestamp2(VkCommandBuffer commandBuffer, VkPipelineStageFlags2 sta
|
||||
|
||||
radv_cs_add_buffer(cmd_buffer->device->ws, cs, pool->bo);
|
||||
|
||||
emit_query_flush(cmd_buffer, pool);
|
||||
si_emit_cache_flush(cmd_buffer);
|
||||
|
||||
int num_queries = 1;
|
||||
if (cmd_buffer->state.render.view_mask)
|
||||
|
Reference in New Issue
Block a user