mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 14:10:37 +02:00
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:
parent
7ee41c162d
commit
aa31683dde
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue