[CI_TEST] tests/kms_flip_tiling

Submitted by Kahola, Mika on May 16, 2018, 11:57 a.m.

Details

Message ID 1526471837-20098-1-git-send-email-mika.kahola@intel.com
State New
Headers show
Series "tests/kms_flip_tiling" ( rev: 2 ) in IGT

Not browsing as part of any series.

Commit Message

Kahola, Mika May 16, 2018, 11:57 a.m.
Make sure framebuffer compression is disabled when running this test.
This may or may not have an effect on pipe crc mismatch errors that
we keep receiving from our CI runs. This patch is all about excluding the
possibility that fbc would have an effect on these errors.

This patch is not for review!

References: https://bugs.freedesktop.org/show_bug.cgi?id=103166
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
 tests/kms_flip_tiling.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/tests/kms_flip_tiling.c b/tests/kms_flip_tiling.c
index 5aae29a..19be81d 100644
--- a/tests/kms_flip_tiling.c
+++ b/tests/kms_flip_tiling.c
@@ -33,6 +33,9 @@ 
 
 IGT_TEST_DESCRIPTION("Test page flips and tiling scenarios");
 
+#define fbc_enable() igt_set_module_param_int("enable_fbc", 1)
+#define fbc_disable() igt_set_module_param_int("enable_fbc", 0)
+
 typedef struct {
 	int drm_fd;
 	igt_display_t display;
@@ -170,6 +173,7 @@  igt_main
 
 		igt_require_pipe_crc(data.drm_fd);
 		igt_display_init(&data.display, data.drm_fd);
+		fbc_disable();
 	}
 
 	/*