anv: Soft-pin client-allocated memory
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 May 2018 23:06:39 +0000 (16:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jun 2018 21:27:11 +0000 (14:27 -0700)
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>
src/intel/vulkan/anv_device.c

index 69de75c7374b474fbd5df9fef77f557859713850..8b44b1bb1ec52417aee61d89f5cff49b1887a922 100644 (file)
@@ -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);