[Mesa-dev] [PATCH 1/3] anv: Flag semaphore BOs as external
Jason Ekstrand
jason at jlekstrand.net
Fri Oct 26 18:40:19 UTC 2018
It probably doesn't actually break anything but it does cause some
assertions in debug builds.
Fixes: 7a89a0d9edae6 "anv: Use separate MOCS settings for external BOs"
---
src/intel/vulkan/anv_queue.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c
index 8e9f743fcb7..6369222b801 100644
--- a/src/intel/vulkan/anv_queue.c
+++ b/src/intel/vulkan/anv_queue.c
@@ -970,7 +970,7 @@ VkResult anv_CreateSemaphore(
} else {
semaphore->permanent.type = ANV_SEMAPHORE_TYPE_BO;
VkResult result = anv_bo_cache_alloc(device, &device->bo_cache,
- 4096, 0,
+ 4096, ANV_BO_EXTERNAL,
&semaphore->permanent.bo);
if (result != VK_SUCCESS) {
vk_free2(&device->alloc, pAllocator, semaphore);
@@ -1119,7 +1119,8 @@ VkResult anv_ImportSemaphoreFdKHR(
new_impl.type = ANV_SEMAPHORE_TYPE_BO;
VkResult result = anv_bo_cache_import(device, &device->bo_cache,
- fd, 0, &new_impl.bo);
+ fd, ANV_BO_EXTERNAL,
+ &new_impl.bo);
if (result != VK_SUCCESS)
return result;
--
2.19.1
More information about the mesa-dev
mailing list