fix: copy sip binary to allocation based on blitRequired query

- readOnly ISA allocations must be written through CPU pointer
- command buffer allocation in singleAddressSpaceSbaTracking mode cannot
be readonly - it is written by SBA tracking commands
- this change is fixing ZET_ENABLE_PROGRAM_DEBUGGING mode 2

Related-To: GSD-10359

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-06-30 18:35:32 +00:00
committed by Compute-Runtime-Automation
parent 25d0daf754
commit cb152ba821
12 changed files with 96 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2024 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -158,9 +158,9 @@ bool GraphicsAllocation::hasAllocationReadOnlyType() {
return false;
}
void GraphicsAllocation::checkAllocationTypeReadOnlyRestrictions(const AllocationProperties &properties) {
void GraphicsAllocation::checkAllocationTypeReadOnlyRestrictions(const AllocationData &allocData) {
if (getAllocationType() == AllocationType::commandBuffer &&
(properties.flags.cantBeReadOnly | properties.flags.multiOsContextCapable)) {
(allocData.flags.cantBeReadOnly | allocData.flags.multiOsContextCapable)) {
setAsCantBeReadOnly(true);
return;
}