diff options
author | Scott D Phillips <[email protected]> | 2018-05-30 20:16:30 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-01 14:27:13 -0700 |
commit | 4affeba1e9eb426a1ba13a3e8ced4673c4bb9b34 (patch) | |
tree | f2ac24c4a26ff2d5c1082cc3fa0c04610c03c23e /src/intel/vulkan/genX_query.c | |
parent | f3dbe0419de8ad195f0f0ce8f4f45b03b16936a3 (diff) |
anv: Soft-pin everything else
v2 (Jason Ekstrand):
- Break up Scott's mega-patch
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_query.c')
-rw-r--r-- | src/intel/vulkan/genX_query.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index de409be04ed..e35e9b85844 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -94,9 +94,14 @@ VkResult genX(CreateQueryPool)( if (pdevice->supports_48bit_addresses) pool->bo.flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS; + if (pdevice->use_softpin) + pool->bo.flags |= EXEC_OBJECT_PINNED; + if (pdevice->has_exec_async) pool->bo.flags |= EXEC_OBJECT_ASYNC; + anv_vma_alloc(device, &pool->bo); + /* For query pools, we set the caching mode to I915_CACHING_CACHED. On LLC * platforms, this does nothing. On non-LLC platforms, this means snooping * which comes at a slight cost. However, the buffers aren't big, won't be @@ -129,6 +134,7 @@ void genX(DestroyQueryPool)( return; anv_gem_munmap(pool->bo.map, pool->bo.size); + anv_vma_free(device, &pool->bo); anv_gem_close(device, pool->bo.gem_handle); vk_free2(&device->alloc, pAllocator, pool); } |