All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH 1/2 i-g-t] tests/kms_universal_plane: Skip off screen universal calls on AMD devices
@ 2022-05-06 21:22 Alex Hung
  2022-05-06 21:22 ` [igt-dev] [PATCH 2/2 i-g-t] tests/kms_universal_plane: enable gen9_test_pipe for all devices Alex Hung
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Alex Hung @ 2022-05-06 21:22 UTC (permalink / raw)
  To: igt-dev

amdgpu_dm intentionally blocks planes outside the screen in the function
"dm_plane_helper_check_state" and returns -EINVAL. As a results, this
piece of code should be skipped on AMD devices.

Signed-off-by: Alex Hung <alex.hung@amd.com>
---
 tests/kms_universal_plane.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c
index 3cb6d704..3a3667e6 100644
--- a/tests/kms_universal_plane.c
+++ b/tests/kms_universal_plane.c
@@ -242,16 +242,18 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
 	igt_display_commit2(display, COMMIT_LEGACY);
 
 	/* Step 14: Universal API, set primary completely offscreen (CRC 9) */
-	igt_assert(drmModeSetPlane(data->drm_fd, primary->drm_plane->plane_id,
-				   output->config.crtc->crtc_id,
-				   test.blue_fb.fb_id, 0,
-				   9000, 9000,
-				   test.mode->hdisplay,
-				   test.mode->vdisplay,
-				   IGT_FIXED(0,0), IGT_FIXED(0,0),
-				   IGT_FIXED(test.mode->hdisplay,0),
-				   IGT_FIXED(test.mode->vdisplay,0)) == 0);
-	igt_pipe_crc_collect_crc(test.pipe_crc, &test.crc_9);
+	if (!is_amdgpu_device(data->drm_fd)) {
+		igt_assert(drmModeSetPlane(data->drm_fd, primary->drm_plane->plane_id,
+					   output->config.crtc->crtc_id,
+					   test.blue_fb.fb_id, 0,
+					   9000, 9000,
+					   test.mode->hdisplay,
+					   test.mode->vdisplay,
+					   IGT_FIXED(0,0), IGT_FIXED(0,0),
+					   IGT_FIXED(test.mode->hdisplay,0),
+					   IGT_FIXED(test.mode->vdisplay,0)) == 0);
+		igt_pipe_crc_collect_crc(test.pipe_crc, &test.crc_9);
+	}
 
 	/*
 	 * Step 15: Explicitly disable primary after it's already been
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-09 10:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 21:22 [igt-dev] [PATCH 1/2 i-g-t] tests/kms_universal_plane: Skip off screen universal calls on AMD devices Alex Hung
2022-05-06 21:22 ` [igt-dev] [PATCH 2/2 i-g-t] tests/kms_universal_plane: enable gen9_test_pipe for all devices Alex Hung
2022-05-09 10:00   ` Petri Latvala
2022-05-06 22:31 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_universal_plane: Skip off screen universal calls on AMD devices Patchwork
2022-05-07  1:36 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-05-09  7:58 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2,i-g-t] tests/kms_universal_plane: Skip off screen universal calls on AMD devices (rev2) Patchwork
2022-05-09  9:12 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.