mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Init gmm after filling hardware info
Change-Id: I91c5704ef200b22214f37b2c02197cfad426de70 Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
@@ -25,7 +25,6 @@ bool DeviceFactory::getDevices(size_t &numDevices, ExecutionEnvironment &executi
|
||||
numDevices = 0;
|
||||
|
||||
auto hardwareInfo = executionEnvironment.getMutableHardwareInfo();
|
||||
executionEnvironment.initGmm();
|
||||
std::unique_ptr<Wddm> wddm(Wddm::createWddm());
|
||||
if (!wddm->init(*hardwareInfo)) {
|
||||
return false;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "core/helpers/interlocked_max.h"
|
||||
#include "runtime/command_stream/preemption.h"
|
||||
#include "runtime/execution_environment/execution_environment.h"
|
||||
#include "runtime/gmm_helper/gmm.h"
|
||||
#include "runtime/gmm_helper/gmm_helper.h"
|
||||
#include "runtime/gmm_helper/page_table_mngr.h"
|
||||
@@ -22,6 +23,7 @@
|
||||
#include "runtime/os_interface/windows/wddm/wddm_interface.h"
|
||||
#include "runtime/os_interface/windows/wddm_allocation.h"
|
||||
#include "runtime/os_interface/windows/wddm_engine_mapper.h"
|
||||
#include "runtime/platform/platform.h"
|
||||
#include "runtime/sku_info/operations/sku_info_receiver.h"
|
||||
|
||||
#include "gmm_memory.h"
|
||||
@@ -91,6 +93,8 @@ bool Wddm::init(HardwareInfo &outHardwareInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
platform()->peekExecutionEnvironment()->initGmm();
|
||||
|
||||
auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(outHardwareInfo);
|
||||
|
||||
if (featureTable->ftrWddmHwQueues) {
|
||||
|
||||
Reference in New Issue
Block a user