From cb77add45011b129e21f3cb2a4089a73dde56179 Mon Sep 17 00:00:00 2001 From: Melissa Wen <mwen@igalia.com> Date: Thu, 24 Aug 2023 15:15:24 -0100 Subject: [PATCH] tests/kms_atomic: remove zpos < N-planes assert Generalize plane-immutable-zpos test case by removing not-required assert. zpos < N-planes is a condition not required by DRM documentation. Removing this validation doesn't affect the test purpose on verifying that planes with higher zpos always cover those with lower zpos. Also, this assert doesn't fit driver's configuration where the range of plane zpos is just defined by the plane type but its max value doesn't need to be normalized to the number of planes in a CRTC, for example, a cursor plane with the highest possible zpos value. Signed-off-by: Melissa Wen <mwen@igalia.com> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> --- tests/kms_atomic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c index 3289219f9..a3205497b 100644 --- a/tests/kms_atomic.c +++ b/tests/kms_atomic.c @@ -458,7 +458,6 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe, continue; zpos = igt_plane_get_prop(temp, IGT_PLANE_ZPOS); - igt_assert_lt(zpos, n_planes); plane_ptr[zpos] = temp; } -- GitLab