zink: clamp VkImageCreateInfo.arrayLayers to 1 for image resource creation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 29 May 2020 18:38:02 +0000 (14:38 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 07:01:00 +0000 (07:01 +0000)
commit7b3976d3f86d41ccc130b6734630814acf538d28
tree427d6217268747516c62a9b882326d20885db871
parent994224bc2930779f67bc6b592d8ca8544081dfc4
zink: clamp VkImageCreateInfo.arrayLayers to 1 for image resource creation

this is required by spec, so we can generally assume that any time it's 0 here
this is the result of us being lazy elsewhere in the zink driver when we're
manually creating this sort of buffer

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5614>
src/gallium/drivers/zink/zink_resource.c