mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
anv: Soft-pin client-allocated memory
Now that we've done all that refactoring, addresses are now being directly written into surface states by ISL and BLORP whenever a BO is pinned so there's really nothing to do besides enable it. Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
This commit is contained in:
parent
caf41c78ca
commit
e7d0378bd9
1 changed files with 3 additions and 0 deletions
|
|
@ -2051,6 +2051,9 @@ VkResult anv_AllocateMemory(
|
|||
bo_flags |= EXEC_OBJECT_ASYNC;
|
||||
}
|
||||
|
||||
if (pdevice->use_softpin)
|
||||
bo_flags |= EXEC_OBJECT_PINNED;
|
||||
|
||||
const VkImportMemoryFdInfoKHR *fd_info =
|
||||
vk_find_struct_const(pAllocateInfo->pNext, IMPORT_MEMORY_FD_INFO_KHR);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue