diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_pass.c | 10 | ||||
-rw-r--r-- | src/amd/vulkan/radv_private.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c index 3652eb7ce69..3a70006f6bb 100644 --- a/src/amd/vulkan/radv_pass.c +++ b/src/amd/vulkan/radv_pass.c @@ -123,8 +123,6 @@ VkResult radv_CreateRenderPass( .attachment = desc->pInputAttachments[j].attachment, .layout = desc->pInputAttachments[j].layout, }; - if (desc->pInputAttachments[j].attachment != VK_ATTACHMENT_UNUSED) - pass->attachments[desc->pInputAttachments[j].attachment].view_mask |= subpass->view_mask; } } @@ -138,7 +136,6 @@ VkResult radv_CreateRenderPass( .layout = desc->pColorAttachments[j].layout, }; if (desc->pColorAttachments[j].attachment != VK_ATTACHMENT_UNUSED) { - pass->attachments[desc->pColorAttachments[j].attachment].view_mask |= subpass->view_mask; color_sample_count = pCreateInfo->pAttachments[desc->pColorAttachments[j].attachment].samples; } } @@ -157,7 +154,6 @@ VkResult radv_CreateRenderPass( }; if (a != VK_ATTACHMENT_UNUSED) { subpass->has_resolve = true; - pass->attachments[desc->pResolveAttachments[j].attachment].view_mask |= subpass->view_mask; } } } @@ -168,7 +164,6 @@ VkResult radv_CreateRenderPass( .layout = desc->pDepthStencilAttachment->layout, }; if (desc->pDepthStencilAttachment->attachment != VK_ATTACHMENT_UNUSED) { - pass->attachments[desc->pDepthStencilAttachment->attachment].view_mask |= subpass->view_mask; depth_sample_count = pCreateInfo->pAttachments[desc->pDepthStencilAttachment->attachment].samples; } } else { @@ -290,8 +285,6 @@ VkResult radv_CreateRenderPass2KHR( .attachment = desc->pInputAttachments[j].attachment, .layout = desc->pInputAttachments[j].layout, }; - if (desc->pInputAttachments[j].attachment != VK_ATTACHMENT_UNUSED) - pass->attachments[desc->pInputAttachments[j].attachment].view_mask |= subpass->view_mask; } } @@ -305,7 +298,6 @@ VkResult radv_CreateRenderPass2KHR( .layout = desc->pColorAttachments[j].layout, }; if (desc->pColorAttachments[j].attachment != VK_ATTACHMENT_UNUSED) { - pass->attachments[desc->pColorAttachments[j].attachment].view_mask |= subpass->view_mask; color_sample_count = pCreateInfo->pAttachments[desc->pColorAttachments[j].attachment].samples; } } @@ -324,7 +316,6 @@ VkResult radv_CreateRenderPass2KHR( }; if (a != VK_ATTACHMENT_UNUSED) { subpass->has_resolve = true; - pass->attachments[desc->pResolveAttachments[j].attachment].view_mask |= subpass->view_mask; } } } @@ -335,7 +326,6 @@ VkResult radv_CreateRenderPass2KHR( .layout = desc->pDepthStencilAttachment->layout, }; if (desc->pDepthStencilAttachment->attachment != VK_ATTACHMENT_UNUSED) { - pass->attachments[desc->pDepthStencilAttachment->attachment].view_mask |= subpass->view_mask; depth_sample_count = pCreateInfo->pAttachments[desc->pDepthStencilAttachment->attachment].samples; } } else { diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index e5b8286ea62..4b2d27ac0b9 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1839,7 +1839,6 @@ struct radv_render_pass_attachment { VkAttachmentLoadOp stencil_load_op; VkImageLayout initial_layout; VkImageLayout final_layout; - uint32_t view_mask; }; struct radv_render_pass { |