fix: create printf buffer only for kernel with printf calls

Related-To: NEO-15211
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-09-24 12:44:23 +00:00
committed by Compute-Runtime-Automation
parent 668f558c81
commit 869cc35933
8 changed files with 63 additions and 12 deletions

View File

@@ -98,6 +98,7 @@ void MockKernelInfo::populatePointerArg(ArgDescPointer &arg, uint8_t pointerSize
void MockKernelInfo::setPrintfSurface(uint8_t dataParamSize, CrossThreadDataOffset crossThreadDataOffset, SurfaceStateHeapOffset sshOffset) {
kernelDescriptor.kernelAttributes.flags.usesPrintf = true;
kernelDescriptor.kernelAttributes.flags.hasPrintfCalls = true;
populatePointerArg(kernelDescriptor.payloadMappings.implicitArgs.printfSurfaceAddress, dataParamSize, crossThreadDataOffset, sshOffset);
}