From e9277a3b6c44ae81c2e6f403e75e7612ce750c1f Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Thu, 18 Jan 2018 17:12:57 +0100 Subject: lib/igt_fb: Pass format to igt_calc_fb_size bpp is only sufficient to calculate dimensions for packed formats, in case of planar formats we need to pass the drm format fourcc, which will give us better information. This is required for supporting planar framebuffers. Signed-off-by: Maarten Lankhorst Reviewed-by: Mika Kahola --- lib/igt_fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 3004f065..152798e9 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -90,7 +90,7 @@ 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, int bpp, uint64_t tiling, +void igt_calc_fb_size(int fd, int width, int height, uint32_t format, uint64_t tiling, unsigned *size_ret, unsigned *stride_ret); unsigned int igt_create_fb_with_bo_size(int fd, int width, int height, -- cgit v1.2.3