mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
anv: Don't enable compression with modifiers (xe2)
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29906>
This commit is contained in:
parent
66fa1c5ddd
commit
0b75f89f57
1 changed files with 10 additions and 2 deletions
|
|
@ -2017,8 +2017,16 @@ anv_image_is_pat_compressible(struct anv_device *device, struct anv_image *image
|
|||
* the VkImageCreateInfo structure passed to vkCreateImage.
|
||||
*/
|
||||
|
||||
/* TODO: check for other compression requirements and return true */
|
||||
return false;
|
||||
/* There are no compression-enabled modifiers on Xe2, and all legacy
|
||||
* modifiers are not defined with compression. We simply disable
|
||||
* compression on all modifiers.
|
||||
*
|
||||
* We disable this in anv_AllocateMemory() as well.
|
||||
*/
|
||||
if (image->vk.tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue