diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-01 11:24:19 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-04 10:49:11 +0100 |
commit | db4f83ca5da29673ab9210e4322156518047130d (patch) | |
tree | 0f0ae42c3d3d6c8e66fa84ffaff84769590f65ed /tests/testdisplay.c | |
parent | cdb398b5b9a6a1895bbc8213f88bc9e45795db23 (diff) |
lib/kms+tests: Use cached connector state
Speeds up testcases except for those where we want to exercise the
probing itself. The only exceptions left where we do a full probe are
- pm_rpm: We use it to make sure the kernel doesn't get things wrong
with power domains, so we really want to exercise the full probe
paths. And there the only place really is the specific validation
done with the data gathered by get_drm_info.
- kmstest_force_ functions: Newer kernels should be better at
re-probing state when the force sysfs fields change, but better safe
than sorry.
v2: I also consolidated the start_n_modes and start_connectors while
at it - move one of the fixup hunks to this patch that accidentally
got misplaced (Thomas).
Cc: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r-- | tests/testdisplay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 28875b2d..74e60b6f 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -132,7 +132,8 @@ static void dump_connectors_fd(int drmfd) for (i = 0; i < mode_resources->count_connectors; i++) { drmModeConnector *connector; - connector = drmModeGetConnector(drmfd, mode_resources->connectors[i]); + connector = drmModeGetConnectorCurrent(drmfd, + mode_resources->connectors[i]); if (!connector) { igt_warn("could not get connector %i: %s\n", mode_resources->connectors[i], strerror(errno)); continue; |