mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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: a639d40f13 ("radv: add support for local bos. (v3)")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4330
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9176>
This commit is contained in:
parent
2b10bff7b3
commit
2d520b6923
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue