mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
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 <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4666>
This commit is contained in:
parent
e4521aeafc
commit
eab73799d1
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue