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

committed by
sys_ocldev

parent
e0f2656513
commit
f2c94a00a6
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user