summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2017-03-06 14:27:44 -0800
committerNanley Chery <nanley.g.chery@intel.com>2017-06-26 11:09:12 -0700
commit8aaa13467dc289d35dc7900ab9fab9a7689c4178 (patch)
treec4f0ed3a9828817dfd95f166b85dda10ec2d2398 /src/intel
parentb9343301913f8d47d175b25d57ec2a0561f5eb6f (diff)
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>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/isl/isl.c2
1 files changed, 1 insertions, 1 deletions
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. */