[igt-dev] [PATCH i-g-t 2/2] tests/kms_plane: Restore RGB pixel format tests for non-atomic drivers

Ville Syrjala ville.syrjala at linux.intel.com
Tue Feb 23 13:49:24 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Restore the capability to run RGB pixel format tests when the driver
doesn't advertize the atomic capability.

Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Fixes: e96c0d8e6952 ("tests/kms_plane: optimize pixel format tests")
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_plane.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index ecba197c80f5..298a9375b9f4 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -567,8 +567,8 @@ static void capture_format_crcs_packed(data_t *data, enum pipe pipe,
 	prepare_format_color(data, pipe, plane, format, modifier,
 			     width, height, encoding, range, &black, fb, true);
 
-	igt_display_commit_atomic(&data->display, DRM_MODE_ATOMIC_ALLOW_MODESET,
-				  NULL);
+	igt_display_commit2(&data->display, data->display.is_atomic ?
+			    COMMIT_ATOMIC : COMMIT_UNIVERSAL);
 
 	igt_remove_fb(data->drm_fd, &old_fb);
 
-- 
2.26.2



More information about the igt-dev mailing list