From fdced48860ddf632536d212baad09814ce7ee08f Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Wed, 18 Jan 2017 11:25:39 -0500 Subject: lib/igt_kms: Add index property to kmstest_plane struct Add an index property which helps accessing the corresponding igt_plane_t structure through the igt_*_get_plane() functions. Signed-off-by: Robert Foss Reviewed-by: Mika Kahola --- tests/kms_plane_lowres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_plane_lowres.c') diff --git a/tests/kms_plane_lowres.c b/tests/kms_plane_lowres.c index 93aefdaa..858cc482 100644 --- a/tests/kms_plane_lowres.c +++ b/tests/kms_plane_lowres.c @@ -185,7 +185,7 @@ test_setup(data_t *data, enum pipe pipe, uint64_t modifier, int flags, igt_skip_on(crtc.nplanes == 0); for (i = 0; i < crtc.nplanes; i++) - data->plane[i] = igt_output_get_plane(output, crtc.plane[i].plane); + data->plane[i] = igt_output_get_plane(output, crtc.plane[i].index); mode = igt_output_get_mode(output); -- cgit v1.2.3