summaryrefslogtreecommitdiff
path: root/tests/kms_chamelium.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>2018-12-27 15:57:36 +0100
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-12-31 10:12:33 +0200
commit54c864b1b5b02f13264326c6877a444714709a68 (patch)
tree38ce8a918c19dc4732a8c0e38920fd66e5b34b8c /tests/kms_chamelium.c
parenta176905d46d072300ba57f29ac2b98a0228e0e2d (diff)
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 <paul.kocialkowski@bootlin.com> Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'tests/kms_chamelium.c')
-rw-r--r--tests/kms_chamelium.c2
1 files changed, 1 insertions, 1 deletions
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;