i965/drm: Make brw_bo_alloc_tiled take tiling by value, not pointer.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Apr 2017 06:31:20 +0000 (23:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Apr 2017 04:07:45 +0000 (21:07 -0700)
commit193601311cb4cb6a7d8f915b09e2b30ff0af0fa7
tree59d5ed1e056f6095939cf55a1df23d53e3afd06b
parent9bd718407819ab76386b30a83b4a0a0b7c1cacf1
i965/drm: Make brw_bo_alloc_tiled take tiling by value, not pointer.

For some reason we passed tiling by pointer, through several layers,
even though the functions only read the initial value, and never
actually change it.  We even had a do-while loop that executed until
the tiling mode matched - except it always did, so it only ran once.
We then had bogus error handling in case it changed the tiling mode
to something nonsensical...which it never did.

Drop all this nonsense.

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