radeon: use staging for mapping linear textures
authorGrigori Goronzy <greg@chown.ath.cx>
Sun, 13 Oct 2013 16:08:44 +0000 (18:08 +0200)
committerChristian König <christian.koenig@amd.com>
Sun, 13 Oct 2013 18:09:34 +0000 (20:09 +0200)
commitf250fd59c4e39e55816eb0bacce30c14240b58c4
treec3a5c929e30ee7c4662d569d460fed95961c1d18
parent270fab5164d04bd8ce5f322c1a4d6ca39734d39a
radeon: use staging for mapping linear textures

Textures that likely reside in VRAM, are mapped for reading and
don't require direct mapping should be staged into GTT, to avoid bad
performance. This fixes readback performance of VDPAU surfaces.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c