diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-01-24 16:30:48 +0100 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-02-26 09:45:54 +0100 |
commit | cf8438acbc57a1bac5cf64f1d8d0e584daf670c9 (patch) | |
tree | 4253e13778341ec4471ad666004aa358c95d8ab0 /tests | |
parent | 0f4aff46d2aab7a3172a89c32c2abab6e2dc7c06 (diff) |
lib/igt_fb: Pass the modifier to igt_fb_convert helpers
The modifier is part of how a frame is represented, so add it as an
extra argument so that it can be specified when converting framebuffers.
For now, only a linear modifier is supported.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_chamelium.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index 64f87d3a..fe58aea9 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -546,7 +546,8 @@ static void do_test_display(data_t *data, struct chamelium_port *port, DRM_FORMAT_XRGB8888, 64, &fb); igt_assert(fb_id > 0); - frame_id = igt_fb_convert(&frame_fb, &fb, fourcc); + frame_id = igt_fb_convert(&frame_fb, &fb, fourcc, + LOCAL_DRM_FORMAT_MOD_NONE); igt_assert(frame_id > 0); if (check == CHAMELIUM_CHECK_CRC) |