mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
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>
This commit is contained in:
+10
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user