[igt-dev] [PATCH i-g-t 3/5] tests/amdgpu: Fix test init error on Baffin

Rodrigo Siqueira Rodrigo.Siqueira at amd.com
Mon Nov 29 19:56:57 UTC 2021


From: Qingqing Zhuo <qingqing.zhuo at amd.com>

[why]
Baffin does not support plane overlay.
igt_pipe_get_plane_type would thus reports
error.

Signed-off-by: Qingqing Zhuo <qingqing.zhuo at amd.com>
---
 tests/amdgpu/amd_color.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/amdgpu/amd_color.c b/tests/amdgpu/amd_color.c
index 84f0a995..74900ba9 100644
--- a/tests/amdgpu/amd_color.c
+++ b/tests/amdgpu/amd_color.c
@@ -265,7 +265,7 @@ static void test_init(data_t *data)
 	data->primary =
 		igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_PRIMARY);
 	data->overlay =
-		igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_OVERLAY);
+		igt_pipe_get_plane_type_index(data->pipe, DRM_PLANE_TYPE_OVERLAY, 0);
 
 	data->pipe_crc = igt_pipe_crc_new(data->fd, data->pipe_id,
 					  INTEL_PIPE_CRC_SOURCE_AUTO);
-- 
2.25.1



More information about the igt-dev mailing list