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_stubs.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_stubs.c')
-rw-r--r-- | src/intel/vulkan/anv_gem_stubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_gem_stubs.c b/src/intel/vulkan/anv_gem_stubs.c index a63e96d52be..8d81eb5b289 100644 --- a/src/intel/vulkan/anv_gem_stubs.c +++ b/src/intel/vulkan/anv_gem_stubs.c @@ -34,7 +34,7 @@ memfd_create(const char *name, unsigned int flags) } uint32_t -anv_gem_create(struct anv_device *device, size_t size) +anv_gem_create(struct anv_device *device, uint64_t size) { int fd = memfd_create("fake bo", MFD_CLOEXEC); if (fd == -1) |