diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 11:11:55 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-26 11:12:38 +0100 |
| commit | 236bab5cfd2d225d1eeec32d4bfa5f0757952975 (patch) | |
| tree | eec06324688219b48934260978c3b1bce88cef17 /lib | |
| parent | 263da26b9c2ce33a4b6aac05acf97b21fe51d70f (diff) | |
lib: Fix types for gem_create()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ioctl_wrappers.c | 2 | ||||
| -rw-r--r-- | lib/ioctl_wrappers.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 000d3940..e52316b7 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -416,7 +416,7 @@ uint32_t __gem_create(int fd, int size) * * Returns: The file-private handle of the created buffer object */ -uint32_t gem_create(int fd, int size) +uint32_t gem_create(int fd, uint64_t size) { struct drm_i915_gem_create create; diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index ced7ef3a..71875805 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -57,7 +57,7 @@ void gem_set_domain(int fd, uint32_t handle, uint32_t read_domains, uint32_t write_domain); void gem_sync(int fd, uint32_t handle); uint32_t __gem_create(int fd, int size); -uint32_t gem_create(int fd, int size); +uint32_t gem_create(int fd, uint64_t size); void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf); void *gem_mmap__gtt(int fd, uint32_t handle, int size, int prot); |
