mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
iris/resource: Drop redundant checks for aux support
Drop some checks that are already done by ISL. Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
This commit is contained in:
parent
75a3947af4
commit
e81392868e
1 changed files with 0 additions and 15 deletions
|
|
@ -475,10 +475,6 @@ supports_mcs(const struct isl_surf *surf)
|
||||||
if (surf->samples <= 1)
|
if (surf->samples <= 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* See isl_surf_get_mcs_surf for details. */
|
|
||||||
if (surf->samples == 16 && surf->logical_level0_px.width > 8192)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* Depth and stencil buffers use the IMS (interleaved) layout. */
|
/* Depth and stencil buffers use the IMS (interleaved) layout. */
|
||||||
if (isl_surf_usage_is_depth_or_stencil(surf->usage))
|
if (isl_surf_usage_is_depth_or_stencil(surf->usage))
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -490,21 +486,10 @@ static bool
|
||||||
supports_ccs(const struct gen_device_info *devinfo,
|
supports_ccs(const struct gen_device_info *devinfo,
|
||||||
const struct isl_surf *surf)
|
const struct isl_surf *surf)
|
||||||
{
|
{
|
||||||
/* Gen9+ only supports CCS for Y-tiled buffers. */
|
|
||||||
if (surf->tiling != ISL_TILING_Y0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* CCS only supports singlesampled resources. */
|
/* CCS only supports singlesampled resources. */
|
||||||
if (surf->samples > 1)
|
if (surf->samples > 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* The PRM doesn't say this explicitly, but fast-clears don't appear to
|
|
||||||
* work for 3D textures until Gen9 where the layout of 3D textures changes
|
|
||||||
* to match 2D array textures.
|
|
||||||
*/
|
|
||||||
if (devinfo->gen < 9 && surf->dim != ISL_SURF_DIM_2D)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* Note: still need to check the format! */
|
/* Note: still need to check the format! */
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue