Mesa (master): intel/isl: Only create a CCS buffer if the image supports rendering
Nanley Chery
nchery at kemper.freedesktop.org
Mon Jun 26 18:22:50 UTC 2017
Module: Mesa
Branch: master
Commit: 8aaa13467dc289d35dc7900ab9fab9a7689c4178
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8aaa13467dc289d35dc7900ab9fab9a7689c4178
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Mon Mar 6 14:27:44 2017 -0800
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 at intel.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/intel/isl/isl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c
index ba56d86c17..bbbdb19df2 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. */
More information about the mesa-commit
mailing list