summaryrefslogtreecommitdiff
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/igt_kms.c4
-rw-r--r--lib/igt_kms.h1
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 9b0b2f18..ad3c464a 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -854,9 +854,7 @@ static bool _kmstest_connector_config(int drm_fd, uint32_t connector_id,
config->connector = connector;
config->encoder = found;
config->crtc = drmModeGetCrtc(drm_fd, resources->crtcs[pipe]);
- config->crtc_idx = pipe;
- config->pipe = kmstest_get_pipe_from_crtc_id(drm_fd,
- config->crtc->crtc_id);
+ config->pipe = pipe;
drmModeFreeResources(resources);
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 829615d7..48820754 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -118,7 +118,6 @@ struct kmstest_connector_config {
bool connector_dpms_changed;
uint32_t atomic_props_crtc[IGT_NUM_CRTC_PROPS];
uint32_t atomic_props_connector[IGT_NUM_CONNECTOR_PROPS];
- int crtc_idx;
int pipe;
unsigned valid_crtc_idx_mask;
};