diff options
Diffstat (limited to 'tests/kms_plane_scaling.c')
-rw-r--r-- | tests/kms_plane_scaling.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index a8454205..2dd0bda5 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -407,7 +407,16 @@ __test_scaler_with_clipping_clamping_scenario(data_t *d, drmModeModeInfo *mode, mode->vdisplay + 200); igt_plane_set_size(d->plane2, mode->hdisplay + 100, mode->vdisplay + 100); - igt_display_commit2(&d->display, COMMIT_ATOMIC); + + /* + * Can't guarantee that the clipped coordinates are + * suitably aligned for yuv. So allow the commit to fail. + */ + if (igt_format_is_yuv(d->fb[1].drm_format) || + igt_format_is_yuv(d->fb[2].drm_format)) + igt_display_try_commit2(&d->display, COMMIT_ATOMIC); + else + igt_display_commit2(&d->display, COMMIT_ATOMIC); } static void |