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)
commitdeadcb36f49bee9b3010382ffe4fe4f5c439f1c5
tree336f8795249152bd30182718eba0a690ffd838db
parent62347f9e0f81d50e9b0923ec8a192f60ab7a1801
drm/radeon: Use two-ended allocation by size, v2

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>
drivers/gpu/drm/radeon/radeon_object.c
This page took 0.02717 seconds and 5 git commands to generate.