mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
25d0daf754
commit
cb152ba821
@@ -114,9 +114,13 @@ const SipKernel &BuiltIns::getSipKernel(Device &device, OsContext *context) {
|
||||
binary[bindlessSip.getPidOffset()] = static_cast<uint32_t>((context->getOfflineDumpContextId(deviceIndex) >> 32) & 0xFFFFFFFF);
|
||||
}
|
||||
|
||||
auto &rootDeviceEnvironment = device.getRootDeviceEnvironment();
|
||||
auto &productHelper = device.getProductHelper();
|
||||
|
||||
DeviceBitfield copyBitfield{};
|
||||
copyBitfield.set(deviceIndex);
|
||||
copySuccess = MemoryTransferHelper::transferMemoryToAllocationBanks(device, sipAllocation, 0, binary.get(), bindlessSip.getBinary().size(), copyBitfield);
|
||||
copySuccess = MemoryTransferHelper::transferMemoryToAllocationBanks(productHelper.isBlitCopyRequiredForLocalMemory(rootDeviceEnvironment, *sipAllocation),
|
||||
device, sipAllocation, 0, binary.get(), bindlessSip.getBinary().size(), copyBitfield);
|
||||
DEBUG_BREAK_IF(!copySuccess);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user