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 /lib/igt_fb.h | |
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 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |