i965/drm: Make BO size a uint64_t rather than unsigned long.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Apr 2017 06:10:04 +0000 (23:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Apr 2017 04:07:45 +0000 (21:07 -0700)
commitf374b9449eb7181ef30652713f9a82523d3afa17
tree583dc18120daef721980109912c1fe921c238ea3
parentc85d6832fda15f59df786c5843e544ba0bb47b10
i965/drm: Make BO size a uint64_t rather than unsigned long.

The drm_i915_gem_create ioctl structure uses a __u64 for the size,
so we should probably use uint64_t to match.  In theory, we could
probably have a BO larger than 4GB, using a 48-bit PPGTT - it just
wouldn't be mappable in the CPU's 32-bit address space.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_bufmgr.c
src/mesa/drivers/dri/i965/brw_bufmgr.h