[Intel-gfx] [PATCH i-g-t 1/4] lib/ioctl_wrappers: __gem_create needs u64 for size
Tvrtko Ursulin
tursulin at ursulin.net
Thu Mar 30 16:58:06 UTC 2017
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Otherwise we cannot test the ioctl properly.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
lib/ioctl_wrappers.c | 2 +-
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 72fb0ebc2dba..3c7fbe1ebd83 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -554,7 +554,7 @@ uint32_t gem_create_stolen(int fd, uint64_t size)
}
-uint32_t __gem_create(int fd, int size)
+uint32_t __gem_create(int fd, uint64_t size)
{
struct drm_i915_gem_create create;
int ret;
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 56c5d14ced8e..74b53e66d516 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -72,7 +72,7 @@ void gem_sync(int fd, uint32_t handle);
bool gem_create__has_stolen_support(int fd);
uint32_t __gem_create_stolen(int fd, uint64_t size);
uint32_t gem_create_stolen(int fd, uint64_t size);
-uint32_t __gem_create(int fd, int size);
+uint32_t __gem_create(int fd, uint64_t size);
uint32_t gem_create(int fd, uint64_t size);
void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
int __gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
--
2.9.3
More information about the Intel-gfx
mailing list