gallium/radeon: lower memory usage during texture transfers
authorMarek Olšák <marek.olsak@amd.com>
Wed, 18 May 2016 12:31:36 +0000 (14:31 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 1 Jun 2016 15:35:30 +0000 (17:35 +0200)
commit532a5af47fbc585c4132f9ad15f5e0a57c59320b
tree6c112cb3794c01efc05bf0540dd85ec7d1541c98
parent614e3c62725ddeb160c74c551785f7ba8e9bdc2a
gallium/radeon: lower memory usage during texture transfers

This improves throughput by keeping TTM overhead down.

Some piglit tests such as texelFetch and streaming-texture-leak will
use less memory now.

v2: use gart_size / 4 as the threshold

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_texture.c