i965g: make the winsys responsible for all buffer->offset handling
authorKeith Whitwell <keithw@vmware.com>
Thu, 5 Nov 2009 20:34:27 +0000 (20:34 +0000)
committerKeith Whitwell <keithw@vmware.com>
Thu, 5 Nov 2009 20:34:27 +0000 (20:34 +0000)
commit963728665aa0d48d4fdbba4276084528f221ee39
treeb349024e54d20b1662e719287961f36fdda045c7
parent658da189b62c4086c08950f3da5767e628235b55
i965g: make the winsys responsible for all buffer->offset handling

The winsys now inserts the presumed offset into referring buffers from
inside of bo_emit_reloc().  Remove the many locally coded places where
this was happening in the driver and eliminate the worry of getting it
wrong.

No longer need to expose offset values to the driver at all, so no need
to worry about what to do in the driver when they change.  Just use
zero values wherever we had offsets previously -- the relocations will
fix it all up for us.
12 files changed:
src/gallium/drivers/i965/brw_batchbuffer.c
src/gallium/drivers/i965/brw_cc.c
src/gallium/drivers/i965/brw_clip_state.c
src/gallium/drivers/i965/brw_gs_state.c
src/gallium/drivers/i965/brw_screen_texture.c
src/gallium/drivers/i965/brw_sf_state.c
src/gallium/drivers/i965/brw_vs_state.c
src/gallium/drivers/i965/brw_winsys.h
src/gallium/drivers/i965/brw_wm_sampler_state.c
src/gallium/drivers/i965/brw_wm_state.c
src/gallium/drivers/i965/brw_wm_surface_state.c
src/gallium/winsys/drm/i965/xlib/xlib_i965.c