From a1701d0bb565de68d2db279fdf4f95ecb0e61c59 Mon Sep 17 00:00:00 2001 From: Nicholas Kazlauskas Date: Tue, 2 Apr 2019 13:45:22 -0400 Subject: lib/igt_fb: Create AMD YUV buffers with AMD GEM IOCTL The kmstest_dumb_create API isn't suitable for creating multi-planar buffers since it tries to calculate the size based on the first plane's pitch only. AMDGPU requires that the luma pitch be aligned to 256 for YUV buffers which results in crashes on kms_plane@pixel-format-pipe-*-planes tests when using kmstest_dumb_create since the buffer returned is smaller than needed (16384 size returned, 24576 size required). Create and map the buffer with the correct size by using the AMD helpers introduced by this patch: igt_amd_create_bo and igt_amd_mmap_bo. Cc: Harry Wentland Cc: Leo Li Signed-off-by: Nicholas Kazlauskas Reviewed-by: Leo Li --- lib/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 89de06e6..a8462933 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -54,6 +54,7 @@ lib_sources = [ 'igt_v3d.c', 'igt_vc4.c', 'igt_psr.c', + 'igt_amd.c' ] lib_deps = [ -- cgit v1.2.3