projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b934330
)
intel/isl: Only create a CCS buffer if the image supports rendering
author
Nanley Chery
<nanley.g.chery@intel.com>
Mon, 6 Mar 2017 22:27:44 +0000
(14:27 -0800)
committer
Nanley Chery
<nanley.g.chery@intel.com>
Mon, 26 Jun 2017 18:09:12 +0000
(11:09 -0700)
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>
src/intel/isl/isl.c
patch
|
blob
|
history
diff --git
a/src/intel/isl/isl.c
b/src/intel/isl/isl.c
index
ba56d86
..
bbbdb19
100644
(file)
--- 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. */