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 --- lib/igt_fb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index e1c4c1fa..4a680cef 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -129,6 +129,8 @@ int igt_create_bo_with_dimensions(int fd, int width, int height, uint32_t format unsigned *stride_ret, unsigned *size_ret, bool *is_dumb); +uint64_t igt_fb_mod_to_tiling(uint64_t modifier); + /* cairo-based painting */ cairo_t *igt_get_cairo_ctx(int fd, struct igt_fb *fb); void igt_paint_color(cairo_t *cr, int x, int y, int w, int h, -- cgit v1.2.3