From 918ea427d0255b5bc74da3dcccec8cc3fe65631f Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 19 Jan 2018 12:47:11 +0100 Subject: lib/fb: Add support for creating planar framebuffers, v3. Add support to create planar framebuffers, but don't add formats that support them yet. This first requires conversion to the RGB24 format. Changes since v1: - Don't crash in igt_create_bo_with_dimensions(). Changes since v2: - Zero offsets for dumb fb too. Signed-off-by: Maarten Lankhorst Reviewed-by: Mika Kahola [mlankhorst: Change memset(4 * ..) to memset(ARRAY_SIZE(format->plane_bpp) * ..)] --- lib/ioctl_wrappers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ioctl_wrappers.h') diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index f7752aea..13fbe3c1 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -236,7 +236,7 @@ void igt_require_fb_modifiers(int fd); */ int __kms_addfb(int fd, uint32_t handle, uint32_t width, uint32_t height, uint32_t stride, uint32_t pixel_format, uint64_t modifier, - uint32_t flags, uint32_t *buf_id); + uint32_t *offsets, uint32_t flags, uint32_t *buf_id); /** * to_user_pointer: -- cgit v1.2.3