Return error code when there is no space for scratch/private

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2022-10-28 13:58:31 +02:00
committed by Compute-Runtime-Automation
parent 1131a6a4c1
commit ff01b9361e
10 changed files with 90 additions and 6 deletions

View File

@ -782,7 +782,8 @@ TEST_F(KernelPrivateSurfaceTest, GivenKernelWhenPrivateSurfaceTooBigAndGpuPointe
pDevice->getMemoryManager()->setForce32BitAllocations(false);
if (pDevice->getDeviceInfo().computeUnitsUsedForScratch == 0)
pDevice->deviceInfo.computeUnitsUsedForScratch = 120;
EXPECT_EQ(CL_OUT_OF_RESOURCES, kernel->initialize());
kernel->initialize();
EXPECT_EQ(CL_OUT_OF_RESOURCES, kernel->patchPrivateSurface());
}
TEST_F(KernelPrivateSurfaceTest, GivenKernelWhenPrivateSurfaceTooBigAndGpuPointerSize4And32BitAllocationsThenReturnOutOfResources) {