[PATCH i-g-t 4/8] tests/kms_setmode: use CRTC index instead of pipe for intel_drrs_disable()

Jani Nikula
2026-01-27T11:56:34Z

All of the DRRS code uses CRTC index instead of pipe, even if the
parameter naming implies pipe. Pass in the CRTC index.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
tests/kms_setmode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
index e17edb0d0dd0..a7f7a5606bb3 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -664,7 +664,7 @@ retry:
crtc->connector_count, &crtc->mode);

if (is_intel_device(drm_fd))
- intel_drrs_disable(drm_fd, crtc->pipe_id);
+ intel_drrs_disable(drm_fd, crtc->crtc_idx);

free(ids);

--
2.47.3