zink: rename a variable

no functional changes

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16822>
This commit is contained in:
Mike Blumenkrantz 2022-06-01 15:20:30 -04:00 committed by Marge Bot
parent 08116638fd
commit d5d7279d38

View file

@ -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)) {