diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-06 16:34:15 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-09-11 17:23:17 +0300 |
commit | 5f8a33ad1a4ab5ce0d1eb2ba68ccc284d663531c (patch) | |
tree | 8d5fae0a9c8de566b7e10c7ec86dfba6bb7df60e /lib/igt_fb.h | |
parent | b97b528d365a31a994b76ba2daf71b6b8f58575e (diff) |
lib/igt_fb: Make fb size 64bit
Switch all fb size handling to 64bits to accomodate >4GiB
framebuffers.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h index d28bc0c4..2343fe50 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -72,7 +72,7 @@ typedef struct igt_fb { enum igt_color_range color_range; unsigned int stride; uint64_t tiling; - unsigned int size; + uint64_t size; cairo_surface_t *cairo_surface; unsigned int domain; unsigned int num_planes; @@ -105,11 +105,11 @@ enum igt_text_align { void igt_get_fb_tile_size(int fd, uint64_t tiling, int fb_bpp, unsigned *width_ret, unsigned *height_ret); void igt_calc_fb_size(int fd, int width, int height, uint32_t format, uint64_t tiling, - unsigned *size_ret, unsigned *stride_ret); + uint64_t *size_ret, unsigned *stride_ret); unsigned int igt_create_fb_with_bo_size(int fd, int width, int height, uint32_t format, uint64_t tiling, - struct igt_fb *fb, unsigned bo_size, + struct igt_fb *fb, uint64_t bo_size, unsigned bo_stride); unsigned int igt_create_fb(int fd, int width, int height, uint32_t format, uint64_t tiling, struct igt_fb *fb); @@ -135,7 +135,7 @@ int igt_dirty_fb(int fd, struct igt_fb *fb); int igt_create_bo_with_dimensions(int fd, int width, int height, uint32_t format, uint64_t modifier, unsigned stride, - unsigned *stride_ret, unsigned *size_ret, + uint64_t *size_ret, unsigned *stride_ret, bool *is_dumb); uint64_t igt_fb_mod_to_tiling(uint64_t modifier); |