mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
fix: wait on userfence when VM immediate is used
Removed if condition when calling vm_bind in order to reflect changed in KMD. Specifically, dii-4347 to dii-4349 include changes on strict fence ordering on vm_bind, where user fence has to be inserted regardless of using pagefault or explicit residency. Related-To: NEO-11966 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4f3201b2ce
commit
c01a5c45c7
@@ -119,7 +119,7 @@ TEST(DrmVmBindTest, givenPerContextVmsAndBoRequiringExplicitResidencyWhenBinding
|
||||
}
|
||||
}
|
||||
|
||||
TEST(DrmVmBindTest, givenBoNotRequiringExplicitResidencyWhenCallingWaitForBindThenDontWaitOnUserFence) {
|
||||
TEST(DrmVmBindTest, whenCallingWaitForBindThenWaitUserFenceIsCalled) {
|
||||
auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
|
||||
executionEnvironment->rootDeviceEnvironments[0]->initGmm();
|
||||
executionEnvironment->initializeMemoryManager();
|
||||
@@ -148,11 +148,7 @@ TEST(DrmVmBindTest, givenBoNotRequiringExplicitResidencyWhenCallingWaitForBindTh
|
||||
|
||||
drm.waitForBind(vmHandleId);
|
||||
|
||||
if (requireResidency) {
|
||||
EXPECT_TRUE(drm.waitUserFenceCalled);
|
||||
} else {
|
||||
EXPECT_FALSE(drm.waitUserFenceCalled);
|
||||
}
|
||||
EXPECT_TRUE(drm.waitUserFenceCalled);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user