summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-07-17 00:53:55 +0200
committerMarek Olšák <[email protected]>2016-07-19 23:45:06 +0200
commit3cdc0e133f77b5095525d23a30827b40954be1c7 (patch)
tree49275e3869a2430f1ff4ce5d0605140796534cc9 /src/gallium/winsys/amdgpu
parentfec7f74129622f846c79edc3a6b050db62c89554 (diff)
gallium/pb_cache: divide the cache into buckets for reducing cache misses
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_bo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index b4dc6c7901a..3545b78f769 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
@@ -303,7 +303,7 @@ static struct amdgpu_winsys_bo *amdgpu_create_bo(struct amdgpu_winsys *ws,
return NULL;
}
- pb_cache_init_entry(&ws->bo_cache, &bo->cache_entry, &bo->base);
+ pb_cache_init_entry(&ws->bo_cache, &bo->cache_entry, &bo->base, 0);
request.alloc_size = size;
request.phys_alignment = alignment;
@@ -508,7 +508,7 @@ amdgpu_bo_create(struct radeon_winsys *rws,
/* Get a buffer from the cache. */
bo = (struct amdgpu_winsys_bo*)
- pb_cache_reclaim_buffer(&ws->bo_cache, size, alignment, usage);
+ pb_cache_reclaim_buffer(&ws->bo_cache, size, alignment, usage, 0);
if (bo)
return &bo->base;