mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-22 11:21:47 +08:00
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:
committed by
Compute-Runtime-Automation
parent
668f558c81
commit
869cc35933
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user