diff options
author | Marek Olšák <[email protected]> | 2018-01-01 22:58:43 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-01-27 02:09:09 +0100 |
commit | 0e40c6a7b70673734dfecf5957c086b30f11befe (patch) | |
tree | 2249c7d3ec29a6763876fc8aac922973112e1cbc /src/gallium/drivers | |
parent | 175549e0e988d10f8277c30ae4e6b6d5fea702a4 (diff) |
gallium/radeon: set number of pb_cache buckets = number of heaps
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_winsys.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h index 6e87f75b81d..8a69a2b4982 100644 --- a/src/gallium/drivers/radeon/radeon_winsys.h +++ b/src/gallium/drivers/radeon/radeon_winsys.h @@ -708,26 +708,6 @@ static inline unsigned radeon_flags_from_heap(enum radeon_heap heap) } } -/* The pb cache bucket is chosen to minimize pb_cache misses. - * It must be between 0 and 3 inclusive. - */ -static inline unsigned radeon_get_pb_cache_bucket_index(enum radeon_heap heap) -{ - switch (heap) { - case RADEON_HEAP_VRAM_NO_CPU_ACCESS: - return 0; - case RADEON_HEAP_VRAM_READ_ONLY: - case RADEON_HEAP_VRAM: - return 1; - case RADEON_HEAP_GTT_WC: - case RADEON_HEAP_GTT_WC_READ_ONLY: - return 2; - case RADEON_HEAP_GTT: - default: - return 3; - } -} - /* Return the heap index for winsys allocators, or -1 on failure. */ static inline int radeon_get_heap_index(enum radeon_bo_domain domain, enum radeon_bo_flag flags) |