intel/isl: Only create a CCS buffer if the image supports rendering
v2: Omit the commit message. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
b934330191
commit
8aaa13467d
|
@ -1699,7 +1699,7 @@ isl_surf_get_ccs_surf(const struct isl_device *dev,
|
|||
if (ISL_DEV_GEN(dev) <= 8 && surf->dim != ISL_SURF_DIM_2D)
|
||||
return false;
|
||||
|
||||
if (isl_format_is_compressed(surf->format))
|
||||
if (!isl_format_supports_rendering(dev->info, surf->format))
|
||||
return false;
|
||||
|
||||
/* TODO: More conditions where it can fail. */
|
||||
|
|
Loading…
Reference in New Issue