From: Nanley Chery Date: Mon, 6 Mar 2017 22:27:44 +0000 (-0800) Subject: intel/isl: Only create a CCS buffer if the image supports rendering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8aaa13467dc289d35dc7900ab9fab9a7689c4178;p=mesa.git intel/isl: Only create a CCS buffer if the image supports rendering v2: Omit the commit message. Signed-off-by: Nanley Chery Reviewed-by: Iago Toral Quiroga Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index ba56d86c178..bbbdb19df22 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -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. */