intel: extend current vertex buffers
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Feb 2011 10:37:43 +0000 (10:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 12:59:36 +0000 (12:59 +0000)
commitc625aa19cb53ed27f91bfd16fea6ea727e9a5bbd
tree86187fe82a7410ac0732aa110271f4659281b107
parenta07e4811794051dc65187d17b7f85e340e61854e
intel: extend current vertex buffers

If the next vertex arrays are a (discontiguous) continuation of the
current arrays, such that the new vertices are simply offset from the
start of the current vertex buffer definitions we can reuse those
defintions and avoid the overhead of relocations and invalidations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c