i965/drm: Make brw_bo_alloc_tiled flags parameter 32-bit.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Apr 2017 07:02:35 +0000 (00:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Apr 2017 04:07:45 +0000 (21:07 -0700)
commit44ecbbebe29becd2ec59693db82e010c32ecfbac
tree824707ca77c0958a3c93b090298a1afd9f124e6d
parentf374b9449eb7181ef30652713f9a82523d3afa17
i965/drm: Make brw_bo_alloc_tiled flags parameter 32-bit.

unsigned long is a terrible type for a bitfield - if you need fewer
than 32 bits, it wastes 4 bytes.  If you need more, things break on
32-bit builds.  Just use unsigned.

Even that's a bit ridiculous as we only have one flag today.
Still, it's at least somewhat better.

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_screen.c