diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2015-03-03 14:11:01 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2015-03-12 14:23:48 +0000 |
commit | e36091d1c7010e825897dc4487f9985ab353973b (patch) | |
tree | 9551cea280183f470119d7616748c70f7744cb9f /lib/igt_fb.h | |
parent | 672e88acb72bf58f322af928b2bc636d14aa9f21 (diff) |
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 <tvrtko.ursulin@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 */ |