mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 18:38:11 +02:00
isl: Set tiling requirements for video surfaces
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:
parent
07097c84ca
commit
389ce946fd
3 changed files with 33 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue