diff options
author | Karthik B S <karthik.b.s@intel.com> | 2020-09-25 09:56:12 +0530 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-09-25 18:03:40 +0300 |
commit | 051bd38e4586730fe131134741947f2815324590 (patch) | |
tree | b2073915f6fd6ce678f9070a637e726e955fdae4 /lib/ioctl_wrappers.h | |
parent | a7520973a210b7268c3039902789f433ee0f5ef7 (diff) |
lib/igt_ioctl_wrappers: Add igt_has_drm_cap ioctl wrapper
Add a generic helper for DRM_IOCTL_GET_CAP ioctl.
v10: -No changes.
v11: -Pass cap ID instead of the whole structure. (Ville)
-Fix the patch ordering. (Ville)
Signed-off-by: Karthik B S <karthik.b.s@intel.com>
[vsyrjala: make the docs and code match]
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/ioctl_wrappers.h')
-rw-r--r-- | lib/ioctl_wrappers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index 870ac8b7b..b76bea564 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -196,6 +196,7 @@ struct local_drm_mode_fb_cmd2 { bool igt_has_fb_modifiers(int fd); void igt_require_fb_modifiers(int fd); +bool igt_has_drm_cap(int fd, uint64_t capability); /** * __kms_addfb: |