Mesa (master): radv: Fix implicit sync with recent allocation changes.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 29 21:13:35 UTC 2020
Module: Mesa
Branch: master
Commit: 85fe0e551fc045d03aa7739d0f1d887484ec6d12
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85fe0e551fc045d03aa7739d0f1d887484ec6d12
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date: Wed Apr 29 22:35:54 2020 +0200
radv: Fix implicit sync with recent allocation changes.
the implicit sync flag gets set at the beginning at the function,
but I used = instead of |= later.
Fixes: bec92850270 "radv: Stop using memory type indices."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4814>
---
src/amd/vulkan/radv_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 734d3cee515..49cbee18eff 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -5200,7 +5200,7 @@ static VkResult radv_alloc_memory(struct radv_device *device,
heap_index = device->physical_device->memory_properties.memoryTypes[pAllocateInfo->memoryTypeIndex].heapIndex;
domain = device->physical_device->memory_domains[pAllocateInfo->memoryTypeIndex];
- flags = device->physical_device->memory_flags[pAllocateInfo->memoryTypeIndex];
+ flags |= device->physical_device->memory_flags[pAllocateInfo->memoryTypeIndex];
if (!dedicate_info && !import_info && (!export_info || !export_info->handleTypes)) {
flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING;
More information about the mesa-commit
mailing list