diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-02-23 14:59:16 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-02-23 22:34:14 +0200 |
commit | ec31f1dd10c132ac0869217e769812cd894345b0 (patch) | |
tree | cec76c2c1492c1b8dc57bae63dcd37d13552113e /tests/kms_plane.c | |
parent | e9fe42cc058cfd18362a2954404394c9b2e37f2e (diff) |
tests/kms_plane: Restore RGB pixel format tests for non-atomic drivers
Restore the capability to run RGB pixel format tests when the driver
doesn't advertize the atomic capability.
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fixes: e96c0d8e6952 ("tests/kms_plane: optimize pixel format tests")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_plane.c')
-rw-r--r-- | tests/kms_plane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kms_plane.c b/tests/kms_plane.c index ecba197c..298a9375 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); |