anv: Get rid of a bunch of uses of size_t
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 24 Apr 2017 01:25:17 +0000 (18:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 May 2017 02:07:54 +0000 (19:07 -0700)
commit367031a5c82b62ec3359dab862387e679093c9b7
tree170eb0651d62cd4784aa2b26392673f53f5c9623
parente86aeecb6aa3cf5992bb87792c2219f49c905e05
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 <jasuarez@igalia.com>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_gem.c
src/intel/vulkan/anv_gem_stubs.c
src/intel/vulkan/anv_private.h