[i-g-t 2/2] tests/kms_lease: Fix the usage of pipe for lessee

Bhanuprakash Modem bhanuprakash.modem at intel.com
Thu Apr 6 11:25:08 UTC 2023


Use pipe enum from the lessee display structure.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/kms_lease.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index cb020cc3dab..29a774ae865 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -77,7 +77,7 @@ static int prepare_crtc(lease_t *lease, data_t *data)
 	drmModeModeInfo *mode;
 	igt_display_t *display = &lease->display;
 	igt_output_t *output = connector_id_to_output(display, data->connector_id);
-	enum pipe pipe = data->pipe;
+	enum pipe pipe = display->pipes[data->pipe].pipe;
 	igt_plane_t *primary;
 	int ret;
 
-- 
2.40.0



More information about the Intel-gfx-trybot mailing list