mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
venus: force a roundtrip after vn_renderer_bo_create_dmabuf
This is to ensure the kernel operations and the later ring operations are in the right order. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10390>
This commit is contained in:
parent
8bbe55533f
commit
e91c95dba8
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ vn_AllocateMemory(VkDevice device,
|
|||
vk_free(alloc, mem);
|
||||
return vn_error(dev->instance, result);
|
||||
}
|
||||
vn_instance_roundtrip(dev->instance);
|
||||
|
||||
const VkImportMemoryResourceInfoMESA import_memory_resource_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA,
|
||||
|
|
@ -435,6 +436,7 @@ vn_GetMemoryFdPropertiesKHR(VkDevice device,
|
|||
fd, 0, handleType, &bo);
|
||||
if (result != VK_SUCCESS)
|
||||
return vn_error(dev->instance, result);
|
||||
vn_instance_roundtrip(dev->instance);
|
||||
|
||||
VkMemoryResourcePropertiesMESA memory_resource_properties = {
|
||||
.sType = VK_STRUCTURE_TYPE_MEMORY_RESOURCE_PROPERTIES_MESA,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue