mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix: correct order of wddm initialization
init gmm after getting device and paging queue handles Related-To: NEO-11080 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0c2a8ef30b
commit
ed15408592
@@ -536,6 +536,20 @@ TEST_F(WddmTestWithMockGdiDll, givenShareableAllocationWhenCreateThenSharedHandl
|
||||
EXPECT_NE(0u, handle);
|
||||
}
|
||||
|
||||
TEST_F(WddmTestWithMockGdiDll, whenCreateDeviceFailsThenGmmIsNotIntialized) {
|
||||
VariableBackup backupFailDevice(&failCreateDevice, true);
|
||||
wddm->rootDeviceEnvironment.gmmHelper.reset();
|
||||
EXPECT_FALSE(wddm->init());
|
||||
EXPECT_EQ(nullptr, wddm->rootDeviceEnvironment.gmmHelper.get());
|
||||
}
|
||||
|
||||
TEST_F(WddmTestWithMockGdiDll, whenCreatePagingQueueFailsThenGmmIsNotIntialized) {
|
||||
VariableBackup backupFailDevice(&failCreatePagingQueue, true);
|
||||
wddm->rootDeviceEnvironment.gmmHelper.reset();
|
||||
EXPECT_FALSE(wddm->init());
|
||||
EXPECT_EQ(nullptr, wddm->rootDeviceEnvironment.gmmHelper.get());
|
||||
}
|
||||
|
||||
TEST_F(Wddm20Tests, WhenMakingResidentAndEvictingThenReturnIsCorrect) {
|
||||
OsAgnosticMemoryManager mm(*executionEnvironment);
|
||||
auto gmmHelper = getGmmHelper();
|
||||
|
||||
Reference in New Issue
Block a user