nv50: delay uploads until transfer object is destroyed
authorBen Skeggs <bskeggs@redhat.com>
Sun, 22 Feb 2009 05:38:59 +0000 (15:38 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 22 Feb 2009 05:47:15 +0000 (15:47 +1000)
commite5e255a4062bd96390a3eaa3c83aa40001b6de95
treeaab2ebf8177171dd489ba09de10b056da772624e
parent487a55af7864a3b16531af5481aab7f585622e4a
nv50: delay uploads until transfer object is destroyed

It's possible a state tracker will map/unmap a transfer object many times.
Delaying upload until the object is destroyed will prevent unnecessary
uploads to the GPU.

Also fixing a typo here, was unmapping the wrong buffer on transfer_unmap!
src/gallium/drivers/nv50/nv50_transfer.c