From 7fd0cae99630f954cfe0089b4b7e91576a353582 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 3 Oct 2017 14:52:27 +0100 Subject: lib: Fixup __gem_create() to be 64b safe. We want to create very large objects, larger than the 2G limit imposed by using ints. Signed-off-by: Chris Wilson Cc: Arkadiusz Hiler Reviwed-by: Mika Kuoppala --- lib/ioctl_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ioctl_wrappers.c') diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 1b483706..87511fc6 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -551,7 +551,7 @@ uint32_t gem_create_stolen(int fd, uint64_t size) return create.handle; } -int __gem_create(int fd, int size, uint32_t *handle) +int __gem_create(int fd, uint64_t size, uint32_t *handle) { struct drm_i915_gem_create create = { .size = size, -- cgit v1.2.3