isl: handle DISABLE_AUX in get_mcs_surf

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35679>
This commit is contained in:
Lionel Landwerlin
2025-06-19 11:56:20 +03:00
committed by Marge Bot
parent 2d3f64bf97
commit 691ac65000
+3
View File
@@ -3679,6 +3679,9 @@ isl_surf_get_mcs_surf(const struct isl_device *dev,
const struct isl_surf *surf,
struct isl_surf *mcs_surf)
{
if (surf->usage & ISL_SURF_USAGE_DISABLE_AUX_BIT)
return false;
/* It must be multisampled with an array layout */
if (surf->msaa_layout != ISL_MSAA_LAYOUT_ARRAY)
return false;