anv: Disable PAT-based compression on depth images (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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user