From 1e415d1bdf305e574fc5357462887fa667bc61cd Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 3 Feb 2026 14:59:49 +0100 Subject: [PATCH] radv: emit pending flushes after late decompressions with fbfetch If the rendering state is inherited in the secondary, otherwise nothing wait for the pending flushes after a decompression pass. One more argument to stop delaying this. Fixes dEQP-VK.renderpasses.dynamic_rendering.partial_secondary_cmd_buff.local_read.* Cc: mesa-stable Signed-off-by: Samuel Pitoiset Part-of: (cherry picked from commit 13c9e529bda838a12d565b3ec243c166d695e25a) --- .pick_status.json | 2 +- src/amd/vulkan/radv_cmd_buffer.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index a5040b28d9e..a5d20eaa85d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -14,7 +14,7 @@ "description": "radv: emit pending flushes after late decompressions with fbfetch", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 2de29107140..a7f1b40fb21 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -9694,6 +9694,9 @@ radv_CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCou if (primary->state.dirty & RADV_CMD_DIRTY_FBFETCH_OUTPUT) { radv_handle_fbfetch_output(primary); primary->state.dirty &= ~RADV_CMD_DIRTY_FBFETCH_OUTPUT; + + /* Emit pending flushes if a late decompression was performed. */ + radv_emit_cache_flush(primary); } if (primary->state.render.active && (primary->state.dirty & RADV_CMD_DIRTY_FRAMEBUFFER)) {