Add shareable allocation on windows dGPUs

Add default initialization for object members

Related-To: LOCI-2665

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2022-01-12 15:32:07 +00:00
committed by Compute-Runtime-Automation
parent b75f5d4c8b
commit 1b7949432f
6 changed files with 75 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -143,6 +143,10 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
storageInfo.tileInstanced = true;
}
storageInfo.localOnlyRequired = true;
if (properties.flags.shareable) {
storageInfo.isLockable = false;
}
break;
}
case GraphicsAllocation::AllocationType::UNIFIED_SHARED_MEMORY: