summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-05-30 16:06:39 -0700
committerJason Ekstrand <[email protected]>2018-06-01 14:27:11 -0700
commite7d0378bd958e56e25fe0f185d9403e766f0be32 (patch)
tree182542fecfeda81ed408bedc25cf9c0e6e504e9c /src/intel/vulkan
parentcaf41c78cad7cbbc415a2b1f20a5997501e89729 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 69de75c7374..8b44b1bb1ec 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -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);