radv: remove unused radv_render_pass_attachment::view_mask
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 29 Jan 2019 21:18:47 +0000 (22:18 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Feb 2019 12:17:42 +0000 (13:17 +0100)
Trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pass.c
src/amd/vulkan/radv_private.h

index 3652eb7ce6963463bc1e84db619b58a7a495db14..3a70006f6bb5a67fb66bcecc0f608d174ae450dd 100644 (file)
@@ -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 {
index e5b8286ea62d6565409c31be7d57df651dc3a791..4b2d27ac0b99189eb7db693a2c6a9b2a37a7069c 100644 (file)
@@ -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 {