i965: upload transient indices into the same discontiguous buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Feb 2011 00:18:21 +0000 (00:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 12:59:35 +0000 (12:59 +0000)
commitabb51097566c401344b22a7ee9d699f002a1977f
tree3c450f2b73c4514f40e4f4f5a870dcbb8e005131
parent60bb3e5614a533ff886bf1ddb6341ff34f75c886
i965: upload transient indices into the same discontiguous buffer

As we now pack the indices into a common upload buffer, we can reuse a
single CMD_INDEX_BUFFER packet and translate each invocation with a
start vertex offset.

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_upload.c