intel/isl: FXT1 support was removed on Gfx12.5

v2: cleanup (Jordan Justen)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13241>
This commit is contained in:
Tapani Pälli 2021-10-07 08:27:09 +03:00 committed by Marge Bot
parent 4537814349
commit 70f193ffcf
1 changed files with 6 additions and 5 deletions

View File

@ -735,13 +735,14 @@ isl_format_supports_sampling(const struct intel_device_info *devinfo,
return true;
} else if (devinfo->verx10 >= 125) {
const struct isl_format_layout *fmtl = isl_format_get_layout(format);
/* ASTC support was removed from the hardware on Gfx12.5. Annoyingly,
* our format_info table doesn't have a concept of things being removed
* so we handle it as yet another special case.
/* ASTC & FXT1 support was removed from the hardware on Gfx12.5.
* Annoyingly, our format_info table doesn't have a concept of things
* being removed so we handle it as yet another special case.
*
* See HSD 1408144932 (ASTC), 1407633611 (FXT1)
*
* See HSD 1408144932
*/
if (fmtl->txc == ISL_TXC_ASTC)
if (fmtl->txc == ISL_TXC_ASTC || fmtl->txc == ISL_TXC_FXT1)
return false;
}