mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
anv: Use local memory for block pool BO
Allocating block pool BO into local memory means indirectly it allows us to push our aux map table into local memory too. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12318>
This commit is contained in:
parent
649251ad4e
commit
0afda06441
1 changed files with 2 additions and 0 deletions
|
|
@ -507,6 +507,7 @@ anv_block_pool_expand_range(struct anv_block_pool *pool,
|
|||
pool->name,
|
||||
new_bo_size,
|
||||
bo_alloc_flags |
|
||||
ANV_BO_ALLOC_LOCAL_MEM |
|
||||
ANV_BO_ALLOC_FIXED_ADDRESS |
|
||||
ANV_BO_ALLOC_MAPPED |
|
||||
ANV_BO_ALLOC_SNOOPED,
|
||||
|
|
@ -1376,6 +1377,7 @@ anv_bo_pool_alloc(struct anv_bo_pool *pool, uint32_t size,
|
|||
VkResult result = anv_device_alloc_bo(pool->device,
|
||||
pool->name,
|
||||
pow2_size,
|
||||
ANV_BO_ALLOC_LOCAL_MEM |
|
||||
ANV_BO_ALLOC_MAPPED |
|
||||
ANV_BO_ALLOC_SNOOPED |
|
||||
ANV_BO_ALLOC_CAPTURE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue