From ae6496307c3ebe6409eb9b9f60355516faeefa88 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 10 Nov 2016 10:25:24 +0100 Subject: 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 Fixes: 8a1a38661f56 ("lib: Add igt_create_bo_with_dimensions") Signed-off-by: Tomeu Vizoso --- tests/kms_flip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_flip.c') 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; -- cgit v1.2.3