mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
08116638fd
commit
d5d7279d38
1 changed files with 5 additions and 5 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue