Replace the flags/hint arguments to bo_alloc{,_static} with a location mask.
authorEric Anholt <eric@anholt.net>
Thu, 24 May 2007 23:55:06 +0000 (16:55 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 24 May 2007 23:55:06 +0000 (16:55 -0700)
commitb9323aa2cb4563fba1b328dbc802d673449056ac
treea2711a7b2152971311607ef72186c86b244e3738
parentfd9d27e0686f5a15803d13d207e58be1972fdf31
Replace the flags/hint arguments to bo_alloc{,_static} with a location mask.

Now, allocations only take locations, rather than a variety of unused flags.
The only interesting flag before was the no_move/no_evict pair for scanout
and similar buffers, which the DRI drivers don't use.  That will be readded
when we get to using this code for display buffer allocation, by adding a
pin/unpin call (dynamic pinning/unpinning may be useful for VT switching and
root window resizing).

This commit changes one instance of DRM_BO_FLAG_MEM_LOCAL with
DRM_BO_FLAG_MEM_TT, which appeared to have been unintentional.
src/mesa/drivers/dri/common/dri_bufmgr.c
src/mesa/drivers/dri/common/dri_bufmgr.h
src/mesa/drivers/dri/common/dri_bufmgr_fake.c
src/mesa/drivers/dri/common/dri_bufmgr_ttm.c
src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
src/mesa/drivers/dri/i915tex/intel_buffer_objects.c
src/mesa/drivers/dri/i915tex/intel_regions.c