mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
anv: Flag semaphore BOs as external
It probably doesn't actually break anything but it does cause some assertions in debug builds. Fixes:7a89a0d9ed"anv: Use separate MOCS settings for external BOs" Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commitcbd4468695)
This commit is contained in:
parent
aaff8c7a0e
commit
2edd62b4a2
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue