aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-11-21 02:15:11 -0500
committerMarek Olšák <[email protected]>2018-11-28 20:20:27 -0500
commit5f9ccf827e0aaff3c8571b3d226e33d6e98d4a6f (patch)
tree4273c3a821ef14750f8eb4949fa165ca51dafe9b /src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h
parentcf6835485cd57173b002186a8b3f51239e59e431 (diff)
winsys/amdgpu: optimize slab allocation for 2 MB amdgpu page tables
- the slab buffer size increased from 128 KB to 2 MB (PTE fragment size) - the max suballocated buffer size increased from 64 KB to 256 KB, this increases memory usage because it wastes memory - the number of suballocators increased from 1 to 3 and they are layered on top of each other to minimize unused space in slabs The final increase in memory usage is: DeusEx:MD: 1.8% DOTA 2: 1.75% DiRT Rally: 0.2% The kernel driver will also receive fewer buffers.
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h
index fc8f04544a9..5ae1d3e55a3 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h
@@ -38,7 +38,7 @@
struct amdgpu_cs;
-#define NUM_SLAB_ALLOCATORS 1
+#define NUM_SLAB_ALLOCATORS 3
struct amdgpu_winsys {
struct radeon_winsys base;