OSDN Git Service

u_vbuf: implement another upload codepath which unrolls indices
authorMarek Olšák <maraeo@gmail.com>
Tue, 3 Jan 2012 21:01:03 +0000 (22:01 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 5 Jan 2012 17:29:11 +0000 (18:29 +0100)
commitce44bae366ade59fb2dbdfbfe5a1ab8d24518a57
tree8c1e2ff281a99acf07364de436b2958db7dedf26
parent2b851526c1c047bba7ebb7e51706b1694f027947
u_vbuf: implement another upload codepath which unrolls indices

Improves performance from cca 1 fps to 23 fps in Cogs.
This new codepath is not always used, instead, there is a heuristic which
determines whether to use it. Using translate for uploads is generally
slower than what we have had already, it's a win only in a few cases.
src/gallium/auxiliary/util/u_vbuf.c
src/gallium/auxiliary/util/u_vbuf.h
src/gallium/drivers/r600/r600_state_common.c