From: Friedrich Vock Date: Wed, 3 May 2023 11:52:44 +0000 (+0200) Subject: radv: Always call si_emit_cache_flush before writing timestamps X-Git-Tag: upstream/23.3.3~9189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=284e604872205dfce528b7d764f3698478b693f5;p=platform%2Fupstream%2Fmesa.git 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: --- diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 1dbf3c2..801f958 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -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)