feature: Bind isa allocations as read only

Related-To: NEO-10398
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2024-03-27 16:34:14 +00:00
committed by Compute-Runtime-Automation
parent 2eecf29278
commit 3d9e95d177
2 changed files with 8 additions and 4 deletions

View File

@@ -139,6 +139,10 @@ void GraphicsAllocation::updateCompletionDataForAllocationAndFragments(uint64_t
}
bool GraphicsAllocation::hasAllocationReadOnlyType() {
if (allocationType == AllocationType::kernelIsa ||
allocationType == AllocationType::kernelIsaInternal) {
return true;
}
if (debugManager.flags.ReadOnlyAllocationsTypeMask.get() != 0) {
UNRECOVERABLE_IF(allocationType == AllocationType::unknown);
auto maskVal = debugManager.flags.ReadOnlyAllocationsTypeMask.get();