[PATCH] tests/kms: Skip amdgpu's writeback connectors on panning tests

Alex Hung alex.hung at amd.com
Thu Mar 21 02:06:46 UTC 2024


With commit ff1d9a601 writeback connector will be enabled. The
AMDGPU writeback connector is to be skipped.

Signed-off-by: Alex Hung <alex.hung at amd.com>
---
 tests/kms_plane.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 406aecc04..d76b3a8f5 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -482,6 +482,12 @@ test_plane_panning(data_t *data, enum pipe pipe)
 		drmModeModeInfo *m = &output->config.connector->modes[j__];
 		uint32_t fb_size = m->hdisplay * m->vdisplay * 4;
 
+		if (output->config.connector->connector_type == DRM_MODE_CONNECTOR_WRITEBACK &&
+		   is_amdgpu_device(data->drm_fd)) {
+			igt_debug("Skipping Writeback connector\n");
+			continue;
+		}
+
 		/* test allocates 2 double-dim fbs, add one more, to be safe */
 		if (mem_size && 3 * 4 * fb_size > mem_size) {
 			igt_debug("Skipping mode %s due to low memory\n", m->name);
-- 
2.34.1



More information about the igt-dev mailing list