mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Remove KernelArgInfo and use KernelDescriptor's args instead
Related-To: NEO-4729 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
215051c48f
commit
ef71915c71
@ -564,14 +564,10 @@ TEST_F(InternalsEventTest, givenBlockedKernelWithPrintfWhenSubmittedThenPrintOut
|
||||
|
||||
MockKernelWithInternals mockKernelWithInternals(*pClDevice);
|
||||
auto pKernel = mockKernelWithInternals.mockKernel;
|
||||
KernelInfo *kernelInfo = const_cast<KernelInfo *>(&pKernel->getKernelInfo());
|
||||
kernelInfo->kernelDescriptor.kernelAttributes.bufferAddressingMode = KernelDescriptor::Stateless;
|
||||
|
||||
SPatchAllocateStatelessPrintfSurface sPatchPrintfSurface = {};
|
||||
sPatchPrintfSurface.DataParamOffset = 0;
|
||||
sPatchPrintfSurface.DataParamSize = 8;
|
||||
populateKernelDescriptor(kernelInfo->kernelDescriptor, sPatchPrintfSurface);
|
||||
kernelInfo->kernelDescriptor.kernelMetadata.printfStringsMap[0].assign(testString);
|
||||
auto &kernelInfo = mockKernelWithInternals.kernelInfo;
|
||||
kernelInfo.setPrintfSurface(sizeof(uintptr_t), 0);
|
||||
kernelInfo.addToPrintfStringsMap(0, testString);
|
||||
|
||||
uint64_t crossThread[10];
|
||||
pKernel->setCrossThreadData(&crossThread, sizeof(uint64_t) * 8);
|
||||
|
Reference in New Issue
Block a user