Mesa (main): lavapipe: remove lvp_subpass_attachment::layout

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 19 01:31:45 UTC 2021


Module: Mesa
Branch: main
Commit: 5cf568ce09347b7423f8bea0fa14cd2b2cfaa60b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cf568ce09347b7423f8bea0fa14cd2b2cfaa60b

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Oct  1 14:56:32 2021 -0400

lavapipe: remove lvp_subpass_attachment::layout

unused

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13349>

---

 src/gallium/frontends/lavapipe/lvp_pass.c    | 5 -----
 src/gallium/frontends/lavapipe/lvp_private.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_pass.c b/src/gallium/frontends/lavapipe/lvp_pass.c
index 3d0e454d3fb..d58a47264f4 100644
--- a/src/gallium/frontends/lavapipe/lvp_pass.c
+++ b/src/gallium/frontends/lavapipe/lvp_pass.c
@@ -210,7 +210,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateRenderPass2(
          for (uint32_t j = 0; j < desc->inputAttachmentCount; j++) {
             subpass->input_attachments[j] = (struct lvp_subpass_attachment) {
                .attachment = desc->pInputAttachments[j].attachment,
-               .layout = desc->pInputAttachments[j].layout,
             };
          }
       }
@@ -222,7 +221,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateRenderPass2(
          for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
             subpass->color_attachments[j] = (struct lvp_subpass_attachment) {
                .attachment = desc->pColorAttachments[j].attachment,
-               .layout = desc->pColorAttachments[j].layout,
             };
          }
       }
@@ -234,7 +232,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateRenderPass2(
          for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
             subpass->resolve_attachments[j] = (struct lvp_subpass_attachment) {
                .attachment = desc->pResolveAttachments[j].attachment,
-               .layout = desc->pResolveAttachments[j].layout,
             };
          }
       }
@@ -244,7 +241,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateRenderPass2(
 
          *subpass->depth_stencil_attachment = (struct lvp_subpass_attachment) {
             .attachment = desc->pDepthStencilAttachment->attachment,
-            .layout = desc->pDepthStencilAttachment->layout,
          };
       }
 
@@ -256,7 +252,6 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreateRenderPass2(
 
          *subpass->ds_resolve_attachment = (struct lvp_subpass_attachment){
             .attachment = ds_resolve->pDepthStencilResolveAttachment->attachment,
-            .layout = ds_resolve->pDepthStencilResolveAttachment->layout,
          };
 
          subpass->depth_resolve_mode = ds_resolve->depthResolveMode;
diff --git a/src/gallium/frontends/lavapipe/lvp_private.h b/src/gallium/frontends/lavapipe/lvp_private.h
index ace74b73e3e..be886c7e3b3 100644
--- a/src/gallium/frontends/lavapipe/lvp_private.h
+++ b/src/gallium/frontends/lavapipe/lvp_private.h
@@ -261,7 +261,6 @@ struct lvp_image_view {
 
 struct lvp_subpass_attachment {
    uint32_t         attachment;
-   VkImageLayout    layout;
 };
 
 struct lvp_subpass {



More information about the mesa-commit mailing list