Fixes:
752eefdb ("intel/isl: Refactor isl_surf_get_ccs_surf")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10768>
return false;
if (ISL_GFX_VER(dev) >= 12) {
+ /* With depth surfaces, HIZ is required for CCS. */
+ if (surf->usage & ISL_SURF_USAGE_DEPTH_BIT &&
+ aux_surf->tiling != ISL_TILING_HIZ)
+ return false;
+
enum isl_format ccs_format;
switch (isl_format_get_layout(surf->format)->bpb) {
case 8: ccs_format = ISL_FORMAT_GFX12_CCS_8BPP_Y0; break;