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 /lib/igt_kms.h | |
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 'lib/igt_kms.h')
-rw-r--r-- | lib/igt_kms.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 2d862665..38fa944e 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -734,7 +734,7 @@ extern void igt_pipe_obj_replace_prop_blob(igt_pipe_t *pipe, void igt_pipe_refresh(igt_display_t *display, enum pipe pipe, bool force); -void igt_enable_connectors(void); +void igt_enable_connectors(int drm_fd); void igt_reset_connectors(void); uint32_t kmstest_get_vbl_flag(uint32_t pipe_id); |