summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl_gen7.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-08 22:12:10 -0700
committerJason Ekstrand <[email protected]>2016-07-13 11:47:37 -0700
commit3ab3d97ac9d5851ce452b74822fff0c6c6694ad2 (patch)
treef7bbc93966451b8d5f20fc0e73e00d826e4a6540 /src/intel/isl/isl_gen7.c
parent219024b9a7588a5ebe7faf46120e8e5842e24b43 (diff)
isl: Add support for color control surfaces
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_gen7.c')
-rw-r--r--src/intel/isl/isl_gen7.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c
index bb0ab38bc19..d97d615badd 100644
--- a/src/intel/isl/isl_gen7.c
+++ b/src/intel/isl/isl_gen7.c
@@ -242,6 +242,13 @@ gen7_filter_tiling(const struct isl_device *dev,
if (isl_format_get_layout(info->format)->txc == ISL_TXC_MCS)
*flags &= ISL_TILING_Y0_BIT;
+ /* The CCS formats and tiling always go together */
+ if (isl_format_get_layout(info->format)->txc == ISL_TXC_CCS) {
+ *flags &= ISL_TILING_CCS_BIT;
+ } else {
+ *flags &= ~ISL_TILING_CCS_BIT;
+ }
+
if (info->usage & (ISL_SURF_USAGE_DISPLAY_ROTATE_90_BIT |
ISL_SURF_USAGE_DISPLAY_ROTATE_180_BIT |
ISL_SURF_USAGE_DISPLAY_ROTATE_270_BIT)) {