r600g: always map uninitialized buffer range as unsynchronized
authorMarek Olšák <maraeo@gmail.com>
Wed, 27 Feb 2013 22:50:15 +0000 (23:50 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 1 Mar 2013 12:46:32 +0000 (13:46 +0100)
commit89e2898e9ecfcf93c337b99542b06892a8e30cbe
treecc04229ada84b24ff72eeb2969f2a1a8723fe7e6
parent44f37261fc34763003314245a811cfd21ce6fc87
r600g: always map uninitialized buffer range as unsynchronized

Any driver can implement this simple and efficient optimization.
Team Fortress 2 hits it always. The DISCARD_RANGE codepath is not even used
with TF2 anymore, so we avoid a ton of useless buffer copies.

Tested-by: Andreas Boll <andreas.boll.dev@gmail.com>
NOTE: This is a candidate for the 9.1 branch.
src/gallium/drivers/r600/evergreen_hw_context.c
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_buffer.c
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_state_common.c