intel: combine short memcpy using a temporary allocated buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 Feb 2011 19:40:08 +0000 (19:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 12:59:36 +0000 (12:59 +0000)
commit3630d5b69afcecc3142d2c4897835175886f4bd8
treee2d71c52a66f6f674d022b7007a3cba82df0aeae
parentdfc6c96e5c470f6136cad26b753c024538fd09a0
intel: combine short memcpy using a temporary allocated buffer

Using a temporary buffer for large discontiguous uploads into the common
buffer and a single buffered upload is faster than performing the
discontiguous copies through a mapping into the GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_buffer_objects.h