From 4bb45416a7a55d860ecaf656767ee15fe8128237 Mon Sep 17 00:00:00 2001 From: Praveen Paneri Date: Tue, 18 Jul 2017 22:52:56 +0530 Subject: lib/igt_fb: Let others use igt_get_fb_tile_size This function can be used by igt_draw to get accurate tile dimensions for all tile formats. v2: Added comments to function igt_get_fb_tile_size (Daniel) v3: Fixed errors in comments and coding style (Paulo) Reviewed-by: Paulo Zanoni Signed-off-by: Praveen Paneri --- lib/igt_fb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index f8a845cc..df9ad1fc 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -95,6 +95,8 @@ enum igt_text_align { align_hcenter = 0x08, }; +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, int bpp, uint64_t tiling, unsigned *size_ret, unsigned *stride_ret); unsigned int -- cgit v1.2.3