Correct LKF and EHL device info

Report supportsDeviceEnqueue equal false when device does not support
OCL 2.1 features.

Change-Id: I64e157a70d4a24c3c6256ad204d988dc4b033932
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-06-23 15:26:04 +02:00
committed by sys_ocldev
parent e0f2656513
commit f2c94a00a6
3 changed files with 10 additions and 2 deletions

View File

@ -813,6 +813,14 @@ TEST_F(DeviceGetCapsTest, WhenDeviceIsCreatedThenVmeIsEnabled) {
EXPECT_TRUE(freshDebugSettingsManager.flags.EnableIntelVme.get());
}
TEST_F(DeviceGetCapsTest, WhenDeviceDoesNotSupportOcl21FeaturesThenDeviceEnqueueAndPipeAreNotSupported) {
UltClDeviceFactory deviceFactory{1, 0};
if (deviceFactory.rootDevices[0]->areOcl21FeaturesEnabled() == false) {
EXPECT_FALSE(deviceFactory.rootDevices[0]->getDeviceInfo().deviceEnqueueSupport);
EXPECT_FALSE(deviceFactory.rootDevices[0]->getDeviceInfo().pipeSupport);
}
}
TEST_F(DeviceGetCapsTest, givenVmeRelatedFlagsSetWhenCapsAreCreatedThenDeviceReportCorrectBuiltins) {
DebugManagerStateRestore dbgRestorer;