mesa: only map src/dest regions in _mesa_copy_buffer_subdata()
authorBrian Paul <brianp@vmware.com>
Wed, 4 Jan 2012 21:53:55 +0000 (14:53 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Jan 2012 15:14:32 +0000 (08:14 -0700)
commit6aed626c35db96c99106e2c12ef23dc58965ece0
treebdea8aec61d439f0c230857fbcedd52ea689362a
parentb330f1f13c4b491b3fd7083535b8942cb16a7589
mesa: only map src/dest regions in _mesa_copy_buffer_subdata()

We were wastefully mapping the whole source/dest buffers before.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
src/mesa/main/bufferobj.c