i965/drm: Make stride/pitch a uint32_t.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Apr 2017 06:08:23 +0000 (23:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Apr 2017 04:07:45 +0000 (21:07 -0700)
commit444ab8126d38bfb236b272226f0a57dafd0ac6de
tree4b84dcd2d1a33b942d0e2e15611876e9af4eefa8
parent14fc188460ae33b8cbbbffdb4f26d470eb393c81
i965/drm: Make stride/pitch a uint32_t.

struct drm_i915_gem_set_tiling's stride field is a __u32.
intel_mipmap_tree::stride is a uint32_t.  Using unsigned long just
doesn't make sense.  Switching also lets us drop many pointless
locals that only existed to deal with the type mismatch.

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
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_screen.c