mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
intel/isl: Support lossless compression with multisamples
GEN12 adds the ability to losslessly compress each sample plane in a multisampled buffer that uses MCS compression. v2: Remove unnecessary assertion (Nanley Chery) Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
parent
758a6a3a00
commit
366fcbf2d8
1 changed files with 1 additions and 5 deletions
|
|
@ -1848,13 +1848,9 @@ isl_surf_get_ccs_surf(const struct isl_device *dev,
|
|||
if (aux_surf->usage & ISL_SURF_USAGE_CCS_BIT)
|
||||
return false;
|
||||
|
||||
/* Only multisampled depth buffers with HiZ can have CCS. */
|
||||
if (surf->samples > 1 && !(aux_surf->usage & ISL_SURF_USAGE_HIZ_BIT))
|
||||
if (ISL_DEV_GEN(dev) < 12 && surf->samples > 1)
|
||||
return false;
|
||||
|
||||
assert(surf->msaa_layout == ISL_MSAA_LAYOUT_NONE ||
|
||||
surf->msaa_layout == ISL_MSAA_LAYOUT_INTERLEAVED);
|
||||
|
||||
/* CCS support does not exist prior to Gen7 */
|
||||
if (ISL_DEV_GEN(dev) <= 6)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue