From a3e34ce258aae0602c38fd8020d49f1fd1c7a83f Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 6 Feb 2015 11:05:28 +0100 Subject: 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 --- lib/ioctl_wrappers.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib') 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: -- cgit v1.2.3