r600g: use u_upload_mgr for allocating staging transfer buffers
authorMarek Olšák <maraeo@gmail.com>
Sun, 9 Dec 2012 15:43:16 +0000 (16:43 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 12 Dec 2012 12:11:52 +0000 (13:11 +0100)
commit2478fcd87c4361ce288b042cc922373ef40b113c
tree13497df85def5ab476dd031e217cea984a7e4d90
parent448cd5ea60403576c3eec86ffb2b892e78b9dfe0
r600g: use u_upload_mgr for allocating staging transfer buffers

u_upload_mgr suballocates memory from a large buffer and maps the allocated
range (unsychronized), which is perfect for short-lived staging buffers.

This reduces the number of relocations sent to the kernel.

Tested-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_buffer.c