summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-01 18:10:50 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-02 15:39:06 +0300
commitdc36fa26305b832686616f3fadb1ef05f10f0f8f (patch)
tree91ac5500950a1405bce88187e0bba481fd5cb853
parentf539e21e934019f0196fee646f351b4e30a8c341 (diff)
tests/kms_plane: Fix crop test
Set the src/dst viewports correctly when trying to crop off the edges. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110296 Fixes: 80eb61459791 ("tests/kms_plane: Remove the upscaling requirement") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/kms_plane.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 33e2905a..471bcbeb 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -436,8 +436,11 @@ static void test_format_plane_color(data_t *data, enum pipe pipe,
/*
* if clamping test. DRM_FORMAT_XRGB8888 is used for reference color.
*/
- if (data->crop != 0 && format != DRM_FORMAT_XRGB8888)
+ if (data->crop != 0 && format != DRM_FORMAT_XRGB8888) {
igt_fb_set_position(fb, plane, data->crop, data->crop);
+ igt_fb_set_size(fb, plane, width, height);
+ igt_plane_set_size(plane, width, height);
+ }
igt_display_commit2(&data->display, data->display.is_atomic ? COMMIT_ATOMIC : COMMIT_UNIVERSAL);
igt_pipe_crc_get_current(data->display.drm_fd, data->pipe_crc, crc);