i965: Use the blitter in intel_bufferobj_subdata for busy BOs on Gen6+.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Jul 2012 22:04:00 +0000 (15:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jul 2012 20:35:46 +0000 (13:35 -0700)
commit16060531baa837304eb7a427d0cdbeccd95cf09a
treeb13fa2618d39124693a5ff0b906e0e59dd22dbd0
parent978807ef0153be27e4df19691e3d5f7d7a2a472b
i965: Use the blitter in intel_bufferobj_subdata for busy BOs on Gen6+.

Previously we only did this pre-Gen6, and used pwrite on Gen6+.
In one workload, this cuts significant amount of overhead.

v2: Simplify the function based on Eric's suggestions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_buffer_objects.c