mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 14:30:22 +01: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> (cherry picked from commit2d520b6923)
This commit is contained in:
parent
a0f4bac7dc
commit
890bde0e04
2 changed files with 2 additions and 2 deletions
|
|
@ -1030,7 +1030,7 @@
|
|||
"description": "radv: Don't use dedicated memory info to indicate sharing.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "a639d40f1330351924d736ca260de764734f9ef7"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5331,7 +5331,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