mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
isl: Only allow Y-tiling for ASTC textures
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
1625d911d7
commit
faab6a0f18
1 changed files with 6 additions and 0 deletions
|
|
@ -215,6 +215,12 @@ isl_gen6_filter_tiling(const struct isl_device *dev,
|
|||
*flags &= ~ISL_TILING_W_BIT;
|
||||
}
|
||||
|
||||
/* From the SKL+ PRMs, RENDER_SURFACE_STATE:TileMode,
|
||||
* If Surface Format is ASTC*, this field must be TILEMODE_YMAJOR.
|
||||
*/
|
||||
if (isl_format_get_layout(info->format)->txc == ISL_TXC_ASTC)
|
||||
*flags &= ISL_TILING_Y0_BIT;
|
||||
|
||||
/* MCS buffers are always Y-tiled */
|
||||
if (isl_format_get_layout(info->format)->txc == ISL_TXC_MCS)
|
||||
*flags &= ISL_TILING_Y0_BIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue