r300g: derive user buffer sizes at draw time
authorMarek Olšák <maraeo@gmail.com>
Sun, 26 Dec 2010 03:29:44 +0000 (04:29 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 7 Jan 2011 15:23:49 +0000 (16:23 +0100)
commitbe1af4394e060677b7db6bbb8e3301e38a3363da
treeb344b38efd1e18a52a1be8a1dc21150d68cd63eb
parent2a7380e9c3a040356599a5b7740aa24e067fc1f5
r300g: derive user buffer sizes at draw time

This only uploads the [min_index, max_index] range instead of [0, userbuf size],
which greatly speeds up user buffer uploads.

This is also a prerequisite for atomizing vertex arrays in st/mesa.
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_render_translate.c
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_screen_buffer.h
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_transfer.c