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) * ..)] --- tests/prime_vgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/prime_vgem.c') diff --git a/tests/prime_vgem.c b/tests/prime_vgem.c index a5f75d88..763c62e6 100644 --- a/tests/prime_vgem.c +++ b/tests/prime_vgem.c @@ -723,7 +723,7 @@ static void test_flip(int i915, int vgem, unsigned hang) do_or_die(__kms_addfb(i915, handle[i], bo[i].width, bo[i].height, bo[i].pitch, - DRM_FORMAT_XRGB8888, I915_TILING_NONE, + DRM_FORMAT_XRGB8888, I915_TILING_NONE, NULL, LOCAL_DRM_MODE_FB_MODIFIERS, &fb_id[i])); igt_assert(fb_id[i]); } -- cgit v1.2.3