[PATCH i-g-t 6/7] tests/amdgpu/amd_vrr_range: s/crtc->pipe/crtc->crtc_index/

Jani Nikula
2026-03-20T11:27:06Z

For amdpgu, crtc->crtc_index == crtc->pipe always. Use the generic and
GPU agnostic crtc->crtc_index instead of the vendor specific crtc->pipe.

This allows us to better highlight the places where crtc->pipe is
actually needed and valid.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>

---

Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Cc: Alex Hung <alex.hung@amd.com>
---
tests/amdgpu/amd_vrr_range.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/amdgpu/amd_vrr_range.c b/tests/amdgpu/amd_vrr_range.c
index 9666ed320e35..cc3323df39ad 100644
--- a/tests/amdgpu/amd_vrr_range.c
+++ b/tests/amdgpu/amd_vrr_range.c
@@ -189,9 +189,9 @@ static void test_init(data_t *data)
igt_crtc_t *crtc;

for_each_crtc(display, crtc) {
- igt_output_t *output = &display->outputs[crtc->pipe];
+ igt_output_t *output = &display->outputs[crtc->crtc_index];

- data->output[crtc->pipe] = output;
+ data->output[crtc->crtc_index] = output;
}

igt_display_reset(display);
--
2.47.3