mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
b6f9702cf1
commit
6073f091bb
1 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue