Enable vm bind availability based on ioctl helper support

Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-02-15 14:00:35 +00:00
committed by Compute-Runtime-Automation
parent f7322d3b85
commit 143f67f2fe
4 changed files with 24 additions and 5 deletions

View File

@ -1013,7 +1013,6 @@ TEST(DrmTest, givenInvalidUapiPrelimVersionThenFallbackToBasePrelim) {
TEST(DrmTest, GivenCompletionFenceDebugFlagWhenCreatingDrmObjectThenExpectCorrectSetting) {
DebugManagerStateRestore restore;
DebugManager.flags.UseVmBind.set(1);
auto executionEnvironment = std::make_unique<ExecutionEnvironment>();
executionEnvironment->prepareRootDeviceEnvironments(1);
@ -1029,6 +1028,7 @@ TEST(DrmTest, GivenCompletionFenceDebugFlagWhenCreatingDrmObjectThenExpectCorrec
EXPECT_FALSE(drmDefault.completionFenceSupport());
}
DebugManager.flags.UseVmBind.set(1);
DebugManager.flags.EnableDrmCompletionFence.set(1);
DrmMock drmEnabled{*executionEnvironment->rootDeviceEnvironments[0]};
EXPECT_TRUE(drmEnabled.completionFenceSupport());