summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl_gen7.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-08 19:37:27 -0700
committerJason Ekstrand <[email protected]>2016-07-13 11:47:37 -0700
commit219024b9a7588a5ebe7faf46120e8e5842e24b43 (patch)
tree1040549e41cc74a55b90dab1198590873130892b /src/intel/isl/isl_gen7.c
parent33dc8549fb9b227a57a84aac53f17bd099da38f4 (diff)
isl: Add support for multisample compression surfaces
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_gen7.c')
-rw-r--r--src/intel/isl/isl_gen7.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c
index 1cdb52d3c4e..bb0ab38bc19 100644
--- a/src/intel/isl/isl_gen7.c
+++ b/src/intel/isl/isl_gen7.c
@@ -238,6 +238,10 @@ gen7_filter_tiling(const struct isl_device *dev,
*flags &= ~ISL_TILING_HIZ_BIT;
}
+ /* MCS buffers are always Y-tiled */
+ if (isl_format_get_layout(info->format)->txc == ISL_TXC_MCS)
+ *flags &= ISL_TILING_Y0_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)) {