Merge branch 'pvr-force-twiddled-1d-array-image' into 'main'

pvr: handle LINEAR 1D array textures like TWIDDLED ones

See merge request mesa/mesa!40325
This commit is contained in:
Icenowy Zheng 2026-03-11 12:56:47 +08:00
commit 7ebd30c061

View file

@ -121,7 +121,8 @@ VkResult pvr_arch_pack_tex_state(struct pvr_device *device,
enum pvr_memlayout mem_layout;
VkImageViewType iview_type;
if (info->type == VK_IMAGE_VIEW_TYPE_1D &&
if ((info->type == VK_IMAGE_VIEW_TYPE_1D ||
info->type == VK_IMAGE_VIEW_TYPE_1D_ARRAY) &&
info->mem_layout == PVR_MEMLAYOUT_LINEAR) {
/* Change the memory layout to twiddled as there isn't a TEXSTATE_TEXTYPE
* for 1D linear and 1D twiddled is equivalent.