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>
(cherry picked from commit 284e604872)
This commit is contained in:
Friedrich Vock 2023-05-03 13:52:44 +02:00 committed by Dylan Baker
parent 1f9a82bec5
commit 3a59a680c2
2 changed files with 2 additions and 2 deletions

View file

@ -6814,7 +6814,7 @@
"description": "radv: Always call si_emit_cache_flush before writing timestamps",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2107,7 +2107,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)