[intel] Convert relocations to not be cleared out on buffer submit.
authorEric Anholt <eric@anholt.net>
Thu, 3 Jan 2008 00:55:21 +0000 (16:55 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 3 Jan 2008 23:46:16 +0000 (15:46 -0800)
commit8abffada70fcd62e3c2dcbcdc6d00d258805326b
treed04daf5de22d6bbdb97beda35da6b33f4f1bc6c1
parent0ff3eb637bac9e100aab0a109a46e81bea9203a3
[intel] Convert relocations to not be cleared out on buffer submit.

We have two consumers of relocations.  One is static state buffers, which
want the same relocation every time.  The other is the batchbuffer, which gets
thrown out immediately after submit.  This lets us reduce repeated computation
for static state buffers, and clean up the code by moving relocations nearer
to where the state buffer is computed.
13 files changed:
src/mesa/drivers/dri/common/dri_bufmgr.h
src/mesa/drivers/dri/common/dri_bufmgr_fake.c
src/mesa/drivers/dri/i965/brw_cc.c
src/mesa/drivers/dri/i965/brw_clip_state.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_gs_state.c
src/mesa/drivers/dri/i965/brw_sf_state.c
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/brw_vs_state.c
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c
src/mesa/drivers/dri/i965/brw_wm_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c