r600g: fix abysmal performance in Reaction Quake
authorMarek Olšák <maraeo@gmail.com>
Wed, 31 Oct 2012 23:52:19 +0000 (00:52 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 1 Nov 2012 02:17:58 +0000 (03:17 +0100)
commitfa58644855e44830e0b91dc627703c236fa6712a
treea0605c905d37d9ae0c94e587d6a1842916403220
parent4cf6acc3d0023d93e15531bbcdeffd15ba3e9924
r600g: fix abysmal performance in Reaction Quake

The problem was we set VRAM|GTT for relocations of STATIC resources.
Setting just VRAM increases the framerate 4 times on my machine.

I rewrote the switch statement and adjusted the domains for window
framebuffers too.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/r600_buffer.c
src/gallium/drivers/r600/r600_texture.c