gallium/radeon: fix performance of buffer readbacks
authorMarek Olšák <marek.olsak@amd.com>
Thu, 9 Feb 2017 02:14:22 +0000 (03:14 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 10 Feb 2017 10:27:50 +0000 (11:27 +0100)
commitd86099df0af7c22c8acfd48b38ad446d9c8df6bd
tree37150f84dbea42b5c86c32a5d1d007f6db8130bb
parent24e3b064088b837a930f6e62afa43b3fc3c10e13
gallium/radeon: fix performance of buffer readbacks

We want cached GTT for all non-persistent read mappings.
Set level = 0 on purpose.

Use dma_copy, because resource_copy_region causes a failure in the PBO
read of piglit/getteximage-luminance.

If Rocket League used the READ flag, it should get cached GTT.

v2: mask out UNSYNCHRONIZED

Cc: 13.0 17.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c