diff options
author | Jason Ekstrand <[email protected]> | 2017-04-23 18:25:17 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-05-04 19:07:54 -0700 |
commit | 367031a5c82b62ec3359dab862387e679093c9b7 (patch) | |
tree | 170eb0651d62cd4784aa2b26392673f53f5c9623 /src/intel/vulkan/anv_gem.c | |
parent | e86aeecb6aa3cf5992bb87792c2219f49c905e05 (diff) |
anv: Get rid of a bunch of uses of size_t
We should only use size_t when referring to sizes of bits of CPU memory.
Anything on the GPU or just a regular array length should be a type that
has the same size on both 32 and 64-bit architectures. For state
objects, we use a uint32_t because we'll never allocate a piece of
driver-internal GPU state larger than 2GB (more like 16KB).
Reviewed-by: Juan A. Suarez Romero <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_gem.c')
-rw-r--r-- | src/intel/vulkan/anv_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c index 185086fefcc..4b6ee580702 100644 --- a/src/intel/vulkan/anv_gem.c +++ b/src/intel/vulkan/anv_gem.c @@ -48,7 +48,7 @@ anv_ioctl(int fd, unsigned long request, void *arg) * Return gem handle, or 0 on failure. Gem handles are never 0. */ uint32_t -anv_gem_create(struct anv_device *device, size_t size) +anv_gem_create(struct anv_device *device, uint64_t size) { struct drm_i915_gem_create gem_create = { .size = size, |