diff options
author | Kenneth Graunke <[email protected]> | 2019-05-03 20:27:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-07-02 07:23:55 +0000 |
commit | 457a55716ea7752616bfadafce705f8a07970b9e (patch) | |
tree | 8bc9a94ff12d5cdd8559af5b34e4ac94d714f821 /src/amd/vulkan/radv_shader_helper.h | |
parent | 07f345566448c4defef109b315a5361266ffd2ea (diff) |
iris: Defer closing and freeing VMA until buffers are idle.
There will unfortunately be circumstances where we cannot re-use a
virtual memory address until it's no longer active on the GPU. To
facilitate this, we instead move BOs to a "dead" list, and defer
closing them and returning their VMA until they are idle. We
periodically sweep these away in cleanup_bo_cache, which triggers
every time a new object's refcount hits zero.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Tested-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader_helper.h')
0 files changed, 0 insertions, 0 deletions