isl: assert on gfx6 condition that should not be met

Those 2 cases should have been handled earlier.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14039>
This commit is contained in:
Lionel Landwerlin 2022-03-07 10:44:57 +02:00 committed by Marge Bot
parent 7cf7ea2500
commit 4616aa2fac

View file

@ -53,11 +53,11 @@ isl_gfx6_choose_msaa_layout(const struct isl_device *dev,
if (info->dim != ISL_SURF_DIM_2D)
return false;
/* Should have been filtered by isl_gfx6_filter_tiling() */
assert(!isl_surf_usage_is_display(info->usage));
assert(tiling != ISL_TILING_LINEAR);
/* More obvious restrictions */
if (isl_surf_usage_is_display(info->usage))
return false;
if (tiling == ISL_TILING_LINEAR)
return false;
if (info->levels > 1)
return false;