diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-02 16:25:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-10-03 09:28:01 +0100 |
commit | c5c0dd2e0b6fb2deb2b3e11212250e685177f8ac (patch) | |
tree | 33b1cfd7b5ae9db290e87e3529aded56ba3e5be4 /tests/kms_flip.c | |
parent | ebf6a1dd1795e2f014ff3c47fe2eb4d5255845bd (diff) |
lib/kms: Handle no connectors for igt_enable_connectors()
Take the device fd from the caller as to which card we should try and
enable connectors for (or else we may not enable the right connectors
for the test!) and fail gracefully if there is no kms support on the
device.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_flip.c')
-rw-r--r-- | tests/kms_flip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index f7d08a60a..44a820538 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1575,7 +1575,7 @@ int main(int argc, char **argv) igt_fixture { drm_fd = drm_open_driver_master(DRIVER_ANY); - igt_enable_connectors(); + igt_enable_connectors(drm_fd); kmstest_set_vt_graphics_mode(); igt_install_exit_handler(kms_flip_exit_handler); |