summaryrefslogtreecommitdiff
path: root/tests/kms_atomic.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_atomic.c')
-rw-r--r--tests/kms_atomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index 13a5db1b..f27ee46b 100644
--- a/tests/kms_atomic.c
+++ b/tests/kms_atomic.c
@@ -1361,7 +1361,7 @@ igt_main
igt_subtest("atomic_invalid_params") {
struct kms_atomic_state *scratch = atomic_state_dup(current);
- struct kms_atomic_crtc_state *crtc = &scratch->crtcs[0];
+ struct kms_atomic_crtc_state *crtc = find_crtc(scratch, true);
struct kms_atomic_plane_state *plane =
find_plane(scratch, NUM_PLANE_TYPE_PROPS, crtc);
struct kms_atomic_connector_state *conn =