Remove OCL2.1 restriction on clCreateProgramWithILKHR

Change-Id: Ie0951465e226fb13b49d4f01f9a81b9c562a13e9
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2020-10-06 20:56:41 +02:00
parent c4a910d911
commit e9359b7c2c
2 changed files with 3 additions and 13 deletions

View File

@ -88,14 +88,9 @@ TEST_F(clCreateProgramWithILTests, GivenContextWithDevicesThatDontSupportILWhenC
cl_int err = CL_SUCCESS;
const uint32_t spirv[16] = {0x03022307};
cl_program prog = clCreateProgramWithIL(pContext, spirv, sizeof(spirv), &err);
if (pContext->getDevice(0)->areOcl21FeaturesEnabled()) {
EXPECT_EQ(CL_SUCCESS, err);
EXPECT_NE(nullptr, prog);
clReleaseProgram(prog);
} else {
EXPECT_EQ(CL_INVALID_VALUE, err);
EXPECT_EQ(nullptr, prog);
}
EXPECT_EQ(CL_SUCCESS, err);
EXPECT_NE(nullptr, prog);
clReleaseProgram(prog);
}
TEST_F(clCreateProgramWithILTests, GivenIncorrectIlSizeWhenCreatingProgramWithIlThenInvalidBinaryErrorIsReturned) {