Mesa (main): anv: use vk_image_view::format for creating dynamic renderpasses

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 16 00:44:03 UTC 2022


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

Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date:   Sat Feb 12 14:56:28 2022 -0600

anv: use vk_image_view::format for creating dynamic renderpasses

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15007>

---

 src/intel/vulkan/anv_pass.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/intel/vulkan/anv_pass.c b/src/intel/vulkan/anv_pass.c
index 166aef43dd8..a4a59b52cec 100644
--- a/src/intel/vulkan/anv_pass.c
+++ b/src/intel/vulkan/anv_pass.c
@@ -596,7 +596,7 @@ anv_dynamic_pass_init_full(struct anv_dynamic_render_pass *dyn_render_pass,
          ANV_FROM_HANDLE(anv_image_view, iview, info->pColorAttachments[att].imageView);
 
          pass->attachments[att]     = (struct anv_render_pass_attachment) {
-            .format                 = iview->vk.view_format,
+            .format                 = iview->vk.format,
             .samples                = iview->vk.image->samples,
             .usage                  = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT,
          };
@@ -636,7 +636,7 @@ anv_dynamic_pass_init_full(struct anv_dynamic_render_pass *dyn_render_pass,
       ANV_FROM_HANDLE(anv_image_view, iview, d_or_s_att->imageView);
 
       pass->attachments[ds_idx] = (struct anv_render_pass_attachment) {
-         .format                 = iview->vk.view_format,
+         .format                 = iview->vk.format,
          .samples                = iview->vk.image->samples,
          .usage                  = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,
       };
@@ -670,7 +670,7 @@ anv_dynamic_pass_init_full(struct anv_dynamic_render_pass *dyn_render_pass,
       ANV_FROM_HANDLE(anv_image_view, iview, fsr_attachment->imageView);
 
       pass->attachments[fsr_idx] = (struct anv_render_pass_attachment) {
-         .format  = iview->vk.view_format,
+         .format  = iview->vk.format,
          .samples = iview->vk.image->samples,
          .usage   = VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR,
       };



More information about the mesa-commit mailing list