From 5f8a33ad1a4ab5ce0d1eb2ba68ccc284d663531c Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Thu, 6 Sep 2018 16:34:15 +0300 Subject: lib/igt_fb: Make fb size 64bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch all fb size handling to 64bits to accomodate >4GiB framebuffers. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- lib/igt_fb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/igt_fb.h') 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); -- cgit v1.2.3