[igt-dev] [PATCH] tests/kms_cursor_legacy: igt_require_pipe_crc for flip_vs_cursor_crc
Mark Yacoub
markyacoub at chromium.org
Mon Nov 1 16:37:30 UTC 2021
From: Mark Yacoub <markyacoub at google.com>
[Why]
test_init uses CRC in debugfs which is not supported by some drivers.
[How]
igt_require_pipe_crc before igt_pipe_crc_new is called.
Test: igt at kms_cursor_legacy@flip-vs-cursor-crc-{atomic,legacy} on
ChromeOS Jacuzzi (MTK)
Signed-off-by: Mark Yacoub <markyacoub at chromium.org>
---
tests/kms_cursor_legacy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index 81362807..b006e566 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -1281,6 +1281,7 @@ static void flip_vs_cursor_crc(igt_display_t *display, bool atomic)
igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
+ igt_require_pipe_crc(display->drm_fd);
pipe_crc = igt_pipe_crc_new(display->drm_fd, pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
set_cursor_on_pipe(display, pipe, &cursor_fb);
--
2.33.1.1089.g2158813163f-goog
More information about the igt-dev
mailing list