From e36091d1c7010e825897dc4487f9985ab353973b Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Tue, 3 Mar 2015 14:11:01 +0000 Subject: tiling: Convert framebuffer helpers to use fb modifiers This converts the IGT API only, underneath legacy set_tiling is still used. v2: One got away in kms_flip. Signed-off-by: Tvrtko Ursulin Signed-off-by: Damien Lespiau --- lib/igt_fb.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index d9fb6bbc..bafafcd2 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -51,7 +51,7 @@ struct igt_fb { int width; int height; unsigned stride; - unsigned tiling; + uint64_t tiling; unsigned size; cairo_surface_t *cairo_surface; }; @@ -67,16 +67,16 @@ enum igt_text_align { unsigned int igt_create_fb_with_bo_size(int fd, int width, int height, - uint32_t format, unsigned int tiling, + uint32_t format, uint64_t tiling, struct igt_fb *fb, unsigned bo_size); unsigned int igt_create_fb(int fd, int width, int height, uint32_t format, - unsigned int tiling, struct igt_fb *fb); + uint64_t tiling, struct igt_fb *fb); unsigned int igt_create_color_fb(int fd, int width, int height, - uint32_t format, unsigned int tiling, + uint32_t format, uint64_t tiling, double r, double g, double b, struct igt_fb *fb /* out */); unsigned int igt_create_stereo_fb(int drm_fd, drmModeModeInfo *mode, - uint32_t format, unsigned int tiling); + uint32_t format, uint64_t tiling); void igt_remove_fb(int fd, struct igt_fb *fb); /* cairo-based painting */ -- cgit v1.2.3