From f33fbb215b1a945fc78fec6cd0a99d4fa2bfcf70 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 4 Oct 2024 21:39:33 +0300 Subject: [PATCH] anv: disable pat compression for host images Signed-off-by: Lionel Landwerlin Reviewed-by: Nanley Chery Part-of: --- src/intel/vulkan/anv_image.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 55958816b65..7531f857d43 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -2098,6 +2098,10 @@ anv_image_is_pat_compressible(struct anv_device *device, struct anv_image *image if (image->vk.tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT) return false; + /* Host accessed images cannot be compressed. */ + if (image->vk.usage & VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT) + return false; + return true; }