Improve KernelInfo handling:

Remove wrapper for KernelInfo constructor
Switch to unique pointer where possible

Change-Id: Ib3f323e34836e1d189d836fd539ab45518609610
This commit is contained in:
Cetnerowski
2018-08-16 14:28:58 +02:00
committed by sys_ocldev
parent ff683ebdc1
commit 8647e0c349
36 changed files with 155 additions and 196 deletions

View File

@@ -130,7 +130,7 @@ TEST(ParentKernelTest, initializeOnParentKernelAllocatesPrivateMemoryForBlocks)
uint32_t crossThreadOffsetBlock = 0;
KernelInfo *infoBlock = new KernelInfo();
auto infoBlock = new KernelInfo();
SPatchAllocateStatelessDefaultDeviceQueueSurface *allocateDeviceQueueBlock = new SPatchAllocateStatelessDefaultDeviceQueueSurface;
allocateDeviceQueueBlock->DataParamOffset = crossThreadOffsetBlock;
allocateDeviceQueueBlock->DataParamSize = 8;