diff options
author | Zhipeng Gong <zhipeng.gong@intel.com> | 2015-01-13 08:50:19 +0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-22 09:27:52 +0100 |
commit | 17937a0114b29a273152c4c2df72c5b1a992b07c (patch) | |
tree | b1112f5f8f7467b2252e7076f21a48bfe2f816b8 /lib/ioctl_wrappers.c | |
parent | 5e9fac54918e424d928bc15b90e4c65d4cfdd356 (diff) |
i-g-t: check whether kernel has dual bsd ring
v2: change the number to be consistent with upstream (Zhipeng)
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r-- | lib/ioctl_wrappers.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 5bca4559..19a457ac 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -854,6 +854,22 @@ bool gem_has_vebox(int fd) return gem_has_enable_ring(fd,LOCAL_I915_PARAM_HAS_VEBOX); } +#define LOCAL_I915_PARAM_HAS_BSD2 31 +/** + * gem_has_bsd2: + * @fd: open i915 drm file descriptor + * + * Feature test macro to query whether the BSD2 ring is available. This is simply + * a specific version of gem_has_enable_ring() for the BSD2 ring. + * + * Note that recent Bspec calls this the VCS ring for Video Command Submission. + * + * Returns: Whether the BSD ring is avaible or not. + */ +bool gem_has_bsd2(int fd) +{ + return gem_has_enable_ring(fd,LOCAL_I915_PARAM_HAS_BSD2); +} /** * gem_available_aperture_size: * @fd: open i915 drm file descriptor |