[igt-dev] [PATCH i-g-t 4/5] lib/igt_fb.c: Update tile sizes for GEN12 MCS

Mika Kahola
2019-09-09T13:07:21Z

Update tile sizes for GEN12 MCS.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
lib/igt_fb.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 32bfbeee..c6e4cf78 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -382,6 +382,7 @@ void igt_get_fb_tile_size(int fd, uint64_t modifier, int fb_bpp,
}
break;
case LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS:
+ case LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS:
igt_require_intel(fd);
switch (fb_bpp) {
case 8:
@@ -683,6 +684,7 @@ uint64_t igt_fb_mod_to_tiling(uint64_t modifier)
case LOCAL_I915_FORMAT_MOD_Y_TILED:
case LOCAL_I915_FORMAT_MOD_Y_TILED_CCS:
case LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS:
+ case LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS:
return I915_TILING_Y;
case LOCAL_I915_FORMAT_MOD_Yf_TILED:
case LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS: