Mesa (staging/18.2): anv: Flag semaphore BOs as external

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 29 11:34:05 UTC 2018


Module: Mesa
Branch: staging/18.2
Commit: 2edd62b4a25ddb1c0099bbdaf29109b1e20cd0bb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2edd62b4a25ddb1c0099bbdaf29109b1e20cd0bb

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Oct 26 13:36:01 2018 -0500

anv: Flag semaphore BOs as external

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"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
(cherry picked from commit cbd44686952b4275d654bcb3555111b412b8c8f4)

---

 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 e0c0a42069..f7fb137fdf 100644
--- a/src/intel/vulkan/anv_queue.c
+++ b/src/intel/vulkan/anv_queue.c
@@ -971,7 +971,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);
@@ -1120,7 +1120,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;
 




More information about the mesa-commit mailing list