mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct setting il version
Related-To: NEO-4368 Change-Id: I78111e0c28318f85657ab3cb545d4a5948f7b3d3 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
c4c7d72aa5
commit
4f5c80c916
@ -911,14 +911,21 @@ TEST(DeviceGetCaps, givenOclVersionLessThan21WhenCapsAreCreatedThenDeviceReports
|
||||
}
|
||||
}
|
||||
|
||||
TEST(DeviceGetCaps, givenOclVersion21WhenCapsAreCreatedThenDeviceReportsSpirvAsSupportedIl) {
|
||||
TEST(DeviceGetCaps, givenOcl21FeaturesSupportedWhenCapsAreCreatedThenDeviceReportsSpirvAsSupportedIl) {
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
DebugManager.flags.ForceOCL21FeaturesSupport.set(1);
|
||||
{
|
||||
auto device = std::unique_ptr<Device>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(defaultHwInfo.get()));
|
||||
const auto &caps = device->getDeviceInfo();
|
||||
EXPECT_STREQ("SPIR-V_1.2 ", caps.ilVersion);
|
||||
}
|
||||
|
||||
DebugManager.flags.ForceOCL21FeaturesSupport.set(-1);
|
||||
DebugManager.flags.ForceOCLVersion.set(21);
|
||||
{
|
||||
DebugManager.flags.ForceOCLVersion.set(21);
|
||||
auto device = std::unique_ptr<Device>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(defaultHwInfo.get()));
|
||||
const auto &caps = device->getDeviceInfo();
|
||||
EXPECT_STREQ("SPIR-V_1.2 ", caps.ilVersion);
|
||||
DebugManager.flags.ForceOCLVersion.set(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user