[igt-dev] [PATCH RFC i-g-t 10/10] tests/kms_getgfb: Update GEN12 CCS format modifiers

Mika Kahola
2019-09-25T13:09:49Z

Update Intel GEN12 format modifiers for getfb-reject-ccs
subtest

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

diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c
index ca0b01c0..1d3c4ac1 100644
--- a/tests/kms_getfb.c
+++ b/tests/kms_getfb.c
@@ -88,6 +88,11 @@ static void get_ccs_fb(int fd, struct drm_mode_fb_cmd2 *ret)
};
int size;

+ if (intel_gen(intel_get_drm_devid(fd)) >= 12) {
+ add.modifier[0] = I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS;
+ add.modifier[1] = I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS;
+ }
+
igt_require(has_addfb2_iface(fd));
igt_require_intel(fd);