isl: disallow miptails on planar formats

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/23620>
This commit is contained in:
Lionel Landwerlin 2023-06-27 14:06:43 +03:00 committed by Marge Bot
parent 7ee41c162d
commit aa31683dde

View file

@ -1540,6 +1540,15 @@ isl_choose_miptail_start_level(const struct isl_device *dev,
if (tile_info->max_miptail_levels == 0)
return info->levels;
/* SKL PRMs, Volume 5: Memory Views, YUV 4:2:0 Format Memory Organization :
*
* "Planar YUV does not support MIP Tails as part of Standard Tiling.
* The MIP Tail Start field in RENDER_SURFACE_STATE must be programmed
* to 15."
*/
if (isl_format_is_planar(info->format))
return 15;
assert(tile_info->tiling == ISL_TILING_64 || isl_tiling_is_std_y(tile_info->tiling));
assert(info->samples == 1);