From d23aa709f71f7788e36b4820ffc5533fbef0e342 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Thu, 30 Jun 2016 06:59:03 +0200 Subject: igt_kms: Remove kmstest_connector_config.crtc_idx This is the same as using config.pipe because the order of crtcs will never change. Signed-off-by: Maarten Lankhorst Reviewed-by: Ander Conselvan de Oliveira --- tests/testdisplay.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/testdisplay.c') diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 45280e4c..a974f42b 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -112,7 +112,6 @@ struct connector { drmModeEncoder *encoder; drmModeConnector *connector; int crtc; - int crtc_idx; int pipe; }; @@ -211,7 +210,6 @@ static void connector_find_preferred_mode(uint32_t connector_id, c->connector = config.connector; c->encoder = config.encoder; c->crtc = config.crtc->crtc_id; - c->crtc_idx = config.crtc_idx; c->pipe = config.pipe; if (mode_num != -1) { @@ -497,7 +495,7 @@ int update_display(bool probe) if (test_preferred_mode || force_mode || specified_mode_num != -1) - crtc_idx_mask &= ~(1 << connector->crtc_idx); + crtc_idx_mask &= ~(1 << connector->pipe); } } -- cgit v1.2.3