gallium/radeon: Do not use u_upload_mgr for buffer downloads
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Thu, 14 Aug 2014 18:22:26 +0000 (20:22 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Aug 2014 10:56:04 +0000 (12:56 +0200)
commit5ae9bdafd4bd50c0a72abb7cca5f8407efcb4cba
tree8e0b1ac2451fa8285fa6cc6792de2743ef2175f6
parent498dc676ea7efac9bce490006a4f5b7f81e9e458
gallium/radeon: Do not use u_upload_mgr for buffer downloads

Instead create a staging texture with pipe_buffer_create and
PIPE_USAGE_STAGING.

u_upload_mgr sets the usage of its staging buffer to PIPE_USAGE_STREAM.
But since 150ac07b855b5c5f879bf6ce9ca421ccd1a6c938 CPU -> GPU streaming buffers
are created in VRAM. Therefore the staging texture (in VRAM) does not offer any
performance improvements for buffer downloads.

Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c