summaryrefslogtreecommitdiff
path: root/tests/kms_atomic.c
diff options
context:
space:
mode:
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>2021-08-18 10:17:53 -0400
committerRodrigo Siqueira <Rodrigo.Siqueira@amd.com>2021-08-31 09:55:22 -0400
commit080869f804cb86b25a38889e5ce9a870571cd8c4 (patch)
tree9200713c21cb12ec54ae2b6258e83e58a4942556 /tests/kms_atomic.c
parentc6375c387d512cf90f54a2fc38232728026950dd (diff)
test/kms_atomic: Skip plane overlay test for amdgpu
Currently, amdgpu does not support an overlay strategy. As a result, plane_overlay fails on amdgpu; since this is a driver limitation, this commit skips the overlay test for amdgpu. Changes since V1: - Improve skip message Cc: Harry Wentland <harry.wentland@amd.com> Cc: Nicholas Choi <Nicholas.Choi@amd.com> Cc: Sean Paul <seanpaul@chromium.org> Cc: Mark Yacoub <markyacoub@chromium.org> Cc: Melissa Wen <melissa.srw@gmail.com> Cc: Arkadiusz Hiler <arek@hiler.eu> Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Reviewed-By: Nicholas Choi <Nicholas.Choi@amd.com>
Diffstat (limited to 'tests/kms_atomic.c')
-rw-r--r--tests/kms_atomic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index 1e1bee4d..862ccaa9 100644
--- a/tests/kms_atomic.c
+++ b/tests/kms_atomic.c
@@ -501,6 +501,13 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *p
uint32_t w = mode->hdisplay / 2;
uint32_t h = mode->vdisplay / 2;
+ /* On AMD, with hardware cursor, overlay plane must fully cover
+ * the primary plane (underlay). AMD does not support this test
+ * scenario
+ */
+ igt_require_f(!is_amdgpu_device(output->display->drm_fd),
+ "Overlay must fully cover the primary plane on AMD\n");
+
igt_require(format != 0);
igt_create_pattern_fb(pipe->display->drm_fd, w, h,