isl: Set tiling requirements for video surfaces
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35927>
This commit is contained in:
Calder Young 2025-07-07 14:27:14 -07:00 committed by Marge Bot
parent 07097c84ca
commit 389ce946fd
3 changed files with 33 additions and 0 deletions

View file

@ -135,6 +135,18 @@ isl_gfx125_filter_tiling(const struct isl_device *dev,
*/
if (info->usage & ISL_SURF_USAGE_CPB_BIT)
*flags &= ISL_TILING_4_BIT | ISL_TILING_64_BIT;
/* From ATS-M PRMs, Volume 2a: Command Reference: Instructions,
* MFX_SURFACE_STATE,
*
* "For optimizing memory efficiency based on access patterns, only
* TileY is supported."
*
* The other media engines have similar limitations, TileY is the only
* well-supported tiling mode that can easily be used on all of them.
*/
if (info->usage & ISL_SURF_USAGE_VIDEO_DECODE_BIT)
*flags &= ISL_TILING_4_BIT;
}
void

View file

@ -135,6 +135,18 @@ isl_gfx20_filter_tiling(const struct isl_device *dev,
*/
if (info->usage & ISL_SURF_USAGE_CPB_BIT)
*flags &= ISL_TILING_4_BIT | ISL_TILING_64_XE2_BIT;
/* From ATS-M PRMs, Volume 2a: Command Reference: Instructions,
* MFX_SURFACE_STATE,
*
* "For optimizing memory efficiency based on access patterns, only
* TileY is supported."
*
* The other media engines have similar limitations, TileY is the only
* well-supported tiling mode that can easily be used on all of them.
*/
if (info->usage & ISL_SURF_USAGE_VIDEO_DECODE_BIT)
*flags &= ISL_TILING_4_BIT;
}
void

View file

@ -363,6 +363,15 @@ isl_gfx6_filter_tiling(const struct isl_device *dev,
(dev->info->platform == INTEL_PLATFORM_SKL && dev->info->gt != 4))) {
*flags &= ISL_TILING_LINEAR_BIT;
}
/* From HSW PRMs, Volume 2b: Command Reference: Instructions,
* MFX_SURFACE_STATE,
*
* "For optimizing memory efficiency based on access patterns, only
* TileY is supported."
*/
if (info->usage & ISL_SURF_USAGE_VIDEO_DECODE_BIT)
*flags &= ISL_TILING_Y0_BIT;
}
void