summaryrefslogtreecommitdiff
path: root/tests/testdisplay.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-06-30 06:59:03 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-07-26 14:49:47 +0200
commitd23aa709f71f7788e36b4820ffc5533fbef0e342 (patch)
tree96aef6046290abcdf59b0aae9961d20fbc00482b /tests/testdisplay.c
parent8b0dd38681d60522e47561d0bcbeb1827eb5688c (diff)
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 <maarten.lankhorst@linux.intel.com> Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r--tests/testdisplay.c4
1 files changed, 1 insertions, 3 deletions
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);
}
}