Remove redundant calls from Wddm::init()

Resolves: NEO-3331

Change-Id: I91dc2f170b9feecb9f84f447a9694fdb9b3a03b3
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-07-08 13:30:31 +02:00
committed by sys_ocldev
parent 6ffcd51847
commit 8fca10095e
19 changed files with 134 additions and 139 deletions

View File

@@ -50,7 +50,8 @@ CommandStreamReceiver *createMockCommandStreamReceiver(bool withAubDump, Executi
if (!executionEnvironment.osInterface) {
executionEnvironment.osInterface = std::make_unique<OSInterface>();
auto wddm = new WddmMock();
wddm->init(PreemptionHelper::getDefaultPreemptionMode(*executionEnvironment.getHardwareInfo()));
auto hwInfo = *executionEnvironment.getHardwareInfo();
wddm->init(hwInfo);
executionEnvironment.osInterface->get()->setWddm(wddm);
}