diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 7264968076e..94657acc014 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -2026,6 +2026,19 @@ 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; + /* TODO: Enable compression on depth surfaces. + * https://gitlab.freedesktop.org/mesa/mesa/-/issues/11361 + */ + for (uint32_t plane = 0; plane < image->n_planes; plane++) { + const struct isl_surf *surf = + &image->planes[plane].primary_surface.isl; + if (surf && isl_surf_usage_is_depth(surf->usage)) { + anv_perf_warn(VK_LOG_OBJS(&image->vk.base), + "Disable PAT-based compression on depth images."); + return false; + } + } + return true; }