Mesa (main): zink: rename a variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jun 4 01:26:46 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jun  1 15:20:30 2022 -0400

zink: rename a variable

no functional changes

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16822>

---

 src/gallium/drivers/zink/zink_resource.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index c4eac748c64..ab4a6b8742b 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -756,15 +756,15 @@ resource_object_create(struct zink_screen *screen, const struct pipe_resource *t
             goto fail1;
          }
          obj->modifier = modprops.drmFormatModifier;
-         unsigned num_planes = screen->base.get_dmabuf_modifier_planes(&screen->base, obj->modifier, templ->format);
+         unsigned num_dmabuf_planes = screen->base.get_dmabuf_modifier_planes(&screen->base, obj->modifier, templ->format);
          obj->modifier_aspect = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT;
-         if (num_planes > 1)
+         if (num_dmabuf_planes > 1)
             obj->modifier_aspect |= VK_IMAGE_ASPECT_MEMORY_PLANE_1_BIT_EXT;
-         if (num_planes > 2)
+         if (num_dmabuf_planes > 2)
             obj->modifier_aspect |= VK_IMAGE_ASPECT_MEMORY_PLANE_2_BIT_EXT;
-         if (num_planes > 3)
+         if (num_dmabuf_planes > 3)
             obj->modifier_aspect |= VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT;
-         assert(num_planes <= 4);
+         assert(num_dmabuf_planes <= 4);
       }
 
       if (VKSCR(GetImageMemoryRequirements2)) {



More information about the mesa-commit mailing list