From: Bas Nieuwenhuizen Date: Sun, 21 Feb 2021 20:01:04 +0000 (+0100) Subject: radv: Don't use dedicated memory info to indicate sharing. X-Git-Tag: upstream/21.2.3~7499 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d520b692354ded47dbc32d19c2be253727bc935;p=platform%2Fupstream%2Fmesa.git radv: Don't use dedicated memory info to indicate sharing. Can be used without sharing, so if only the dedicated memory info is set we know it isn't shareable. Use that. Fixes: a639d40f133 ("radv: add support for local bos. (v3)") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4330 Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ffd2696..d58bcec 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -5419,7 +5419,7 @@ static VkResult radv_alloc_memory(struct radv_device *device, domain = device->physical_device->memory_domains[pAllocateInfo->memoryTypeIndex]; flags |= device->physical_device->memory_flags[pAllocateInfo->memoryTypeIndex]; - if (!dedicate_info && !import_info && (!export_info || !export_info->handleTypes)) { + if (!import_info && (!export_info || !export_info->handleTypes)) { flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING; if (device->use_global_bo_list) { flags |= RADEON_FLAG_PREFER_LOCAL_BO;