diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-11-10 10:25:24 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-11-10 11:14:44 +0100 |
commit | ae6496307c3ebe6409eb9b9f60355516faeefa88 (patch) | |
tree | f72d4308f67d4d073af9c3aa17540c226bb86a07 /tests/kms_flip.c | |
parent | d0795466cdc983c6bf0af257af081b5f12d58c6e (diff) |
lib: Pass tiling constant where that's expected
We were passing in two places a framebuffer modifier constant instead of
a tiling constant.
Also adds igt_fb_mod_to_tiling so tests can do that by themselves.
Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Fixes: 8a1a38661f56 ("lib: Add igt_create_bo_with_dimensions")
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Diffstat (limited to 'tests/kms_flip.c')
-rw-r--r-- | tests/kms_flip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 6a1549e7..2a9fe2e3 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -370,7 +370,7 @@ static int _emit_dummy_load__rcs(struct test_output *o, int limit, int timeout) sb[2].bo = gem_handle_to_libdrm_bo(bufmgr, drm_fd, "imported", fb_info->gem_handle); igt_assert(sb[2].bo); sb[2].size = sb[2].bo->size; - sb[2].tiling = fb_info->tiling; + sb[2].tiling = igt_fb_mod_to_tiling(fb_info->tiling); sb[2].data = NULL; sb[2].num_tiles = sb[2].bo->size; sb[2].stride = fb_info->stride; |