pvr: pack image/texture array size unconditionally

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-01-08 15:11:56 +00:00 committed by Marge Bot
parent e3fdd6689b
commit 0ecaad3145

View file

@ -210,7 +210,7 @@ VkResult pvr_pack_tex_state(struct pvr_device *device,
if (iview_type == VK_IMAGE_VIEW_TYPE_3D) {
if (info->extent.depth > 0)
word1.depth = info->extent.depth - 1;
} else if (PVR_HAS_FEATURE(dev_info, tpu_array_textures)) {
} else {
uint32_t array_layers = info->array_size;
if (iview_type == VK_IMAGE_VIEW_TYPE_CUBE_ARRAY)