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 3652eb7..3a70006 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 e5b8286..4b2d27a 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 {