mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-14 04:20:26 +01:00
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:
commit
7ebd30c061
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue