mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
isl: add Gfx12/12.5 restriction on 3D surfaces & compression
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
63c86a95b2
commit
7ee41c162d
1 changed files with 17 additions and 0 deletions
|
|
@ -2875,6 +2875,23 @@ isl_surf_supports_ccs(const struct isl_device *dev,
|
|||
if (surf->dim == ISL_SURF_DIM_3D)
|
||||
return false;
|
||||
|
||||
/* BSpec 44930: (Gfx12, Gfx12.5)
|
||||
*
|
||||
* "Compression of 3D Ys surfaces with 64 or 128 bpp is not supported
|
||||
* in Gen12. Moreover, "Render Target Fast-clear Enable" command is
|
||||
* not supported for any 3D Ys surfaces. except when Surface is a
|
||||
* Procdural Texture."
|
||||
*
|
||||
* Since the note applies to MTL, we apply this to TILE64 too.
|
||||
*/
|
||||
uint32_t format_bpb = isl_format_get_layout(surf->format)->bpb;
|
||||
if (ISL_GFX_VER(dev) == 12 &&
|
||||
surf->dim == ISL_SURF_DIM_3D &&
|
||||
(surf->tiling == ISL_TILING_ICL_Ys ||
|
||||
surf->tiling == ISL_TILING_64) &&
|
||||
(format_bpb == 64 || format_bpb == 128))
|
||||
return false;
|
||||
|
||||
/* TODO: Handle the other tiling formats */
|
||||
if (surf->tiling != ISL_TILING_Y0 && surf->tiling != ISL_TILING_4 &&
|
||||
surf->tiling != ISL_TILING_64)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue