diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-06 11:05:28 +0100 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-13 09:35:35 +0100 |
| commit | a3e34ce258aae0602c38fd8020d49f1fd1c7a83f (patch) | |
| tree | 005809bd19010227d99e81e35631799ae817a94f /lib | |
| parent | c18b2d57a98c061845e0ec31bfffc90e03356aaa (diff) | |
lib/ioctl: gem_ prefix for igt_require_mmap_wc
We stick to the overall prefix even for magic require functions.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ioctl_wrappers.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index a1017ecd..8d8fa46d 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -65,7 +65,16 @@ void *gem_mmap__cpu(int fd, uint32_t handle, int offset, int size, int prot); bool gem_mmap__has_wc(int fd); void *gem_mmap__wc(int fd, uint32_t handle, int offset, int size, int prot); -#define igt_require_mmap_wc(x) igt_require(gem_mmap__has_wc(x)) + +/** + * gem_require_mmap_wc: + * @fd: open i915 drm file descriptor + * + * Feature test macro to query whether direct (i.e. cpu access path, bypassing + * the gtt) write-combine memory mappings are available. Automatically skips + * through igt_require() if not. + */ +#define gem_require_mmap_wc(x) igt_require(gem_mmap__has_wc(x)) /** * gem_mmap: |
