From 54c864b1b5b02f13264326c6877a444714709a68 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Thu, 27 Dec 2018 15:57:36 +0100 Subject: chamelium: Fix inverted xr24 pattern paint dimensions The xr24 pattern for chamelium testing appears mangled when checking it on an actual display. This is because the horizontal and vertical display sizes are inverted when used as width and height. Put them back in order. Signed-off-by: Paul Kocialkowski Reviewed-by: Maxime Ripard --- tests/kms_chamelium.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_chamelium.c') diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index 55b346a9..ee7580b5 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -518,7 +518,7 @@ static int chamelium_get_pattern_fb(data_t *data, drmModeModeInfo *mode, ptr = igt_fb_map_buffer(fb->fd, fb); igt_assert(ptr); - chamelium_paint_xr24_pattern(ptr, mode->vdisplay, mode->hdisplay); + chamelium_paint_xr24_pattern(ptr, mode->hdisplay, mode->vdisplay); igt_fb_unmap_buffer(fb, ptr); return fb_id; -- cgit v1.2.3