diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 12:16:44 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 12:18:15 +0100 |
commit | 019ae907ffcb6c4470ddb114a4d0de9634dc4fef (patch) | |
tree | abe3bf6a515e2b87550a1d5b24a8222bb16daed3 /lib/ioctl_wrappers.c | |
parent | fb950bc17ff8dfa3235535a12f0c4dcde281b2e3 (diff) |
lib: Fix types for gem_mmap*
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r-- | lib/ioctl_wrappers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index dafbfcf4..67d3fd06 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -458,7 +458,7 @@ void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf) * * Returns: A pointer to the created memory mapping. */ -void *gem_mmap__gtt(int fd, uint32_t handle, int size, int prot) +void *gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot) { struct drm_i915_gem_mmap_gtt mmap_arg; void *ptr; @@ -537,7 +537,7 @@ bool gem_mmap__has_wc(int fd) * * Returns: A pointer to the created memory mapping. */ -void *gem_mmap__wc(int fd, uint32_t handle, int offset, int size, int prot) +void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot) { struct local_i915_gem_mmap_v2 arg; @@ -571,7 +571,7 @@ void *gem_mmap__wc(int fd, uint32_t handle, int offset, int size, int prot) * * Returns: A pointer to the created memory mapping. */ -void *gem_mmap__cpu(int fd, uint32_t handle, int offset, int size, int prot) +void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot) { struct drm_i915_gem_mmap mmap_arg; |