r300g: try and use all of vertex constant space
authorDave Airlie <airlied@redhat.com>
Fri, 3 Dec 2010 10:53:39 +0000 (20:53 +1000)
committerMarek Olšák <maraeo@gmail.com>
Sun, 5 Dec 2010 04:47:03 +0000 (05:47 +0100)
commitc1365606c5b89872af4a0931e20f5cb78875eea6
tree8eeb9533852e4739f77cad2fce9dcda760d8db0e
parent1774273bde184acb95ce0ba0bfd8a0d86d04ea8f
r300g: try and use all of vertex constant space

Finished up by Marek Olšák.

We can set the constant space to use a different area per-call to the shader,
we can avoid flushing the PVS as often as we do by spreading out the constants
across the whole constant space.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_reg.h
src/gallium/drivers/r300/r300_state.c