From: Jonathan Marek Date: Tue, 21 Apr 2020 17:37:23 +0000 (-0400) Subject: turnip: fix GMEM resolve in CmdNextSubpass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eab73799d16ea142dcbcabb6d5bedf860b5c9af7;p=mesa.git turnip: fix GMEM resolve in CmdNextSubpass The BLIT scissor must be set correctly for tu_store_gmem_attachment. Fixes this deqp test: dEQP-VK.pipeline.multisample_shader_builtin.sample_id.137_191_1.samples Signed-off-by: Jonathan Marek Part-of: --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 7df98b34e05..11269c2a98c 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -2344,13 +2344,15 @@ tu_CmdNextSubpass(VkCommandBuffer commandBuffer, VkSubpassContents contents) tu_cond_exec_start(cs, CP_COND_EXEC_0_RENDER_MODE_GMEM); if (subpass->resolve_attachments) { + tu6_emit_blit_scissor(cmd, cs, true); + for (unsigned i = 0; i < subpass->color_count; i++) { uint32_t a = subpass->resolve_attachments[i].attachment; if (a == VK_ATTACHMENT_UNUSED) continue; tu_store_gmem_attachment(cmd, cs, a, - subpass->color_attachments[i].attachment); + subpass->color_attachments[i].attachment); if (pass->attachments[a].gmem_offset < 0) continue;