mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
1131a6a4c1
commit
ff01b9361e
@ -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) {
|
||||
|
Reference in New Issue
Block a user