drm/radeon: Use two-ended allocation by size, v2
authorLauri Kasanen <cand@gmx.com>
Wed, 2 Apr 2014 17:33:42 +0000 (20:33 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Apr 2014 23:28:41 +0000 (09:28 +1000)
This decreases eviction by up to 20%, by improving the fragmentation
quality. No harm in normal cases that fit VRAM fully (PTS gaming suite).

In some cases, even the VRAM-fitting cases improved slightly (openarena, urban terror).

512kb was measured as the most optimal threshold for 3d workloads common to radeon.
Other drivers may need different thresholds according to their workloads.

v2: Nicer formatting
Signed-off-by: Lauri Kasanen <cand@gmx.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found