mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
[1/n] Move Hardware Info to Execution Environment
- remove gmm_environment_fixture - remove hwInfo parameter from ExecutionEnvironment methods Change-Id: Ieb0f9b5b89191fbbaf7676685c77644d42d69c26 Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
a1bfbcf293
commit
341fcfc091
@@ -51,7 +51,8 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices, Exec
|
||||
DeviceFactory::hwInfos = tempHwInfos.get();
|
||||
tempHwInfos.release();
|
||||
|
||||
executionEnvironment.initGmm(*pHWInfos);
|
||||
executionEnvironment.setHwInfo(*pHWInfos);
|
||||
executionEnvironment.initGmm();
|
||||
auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(**pHWInfos);
|
||||
bool success = executionEnvironment.osInterface->get()->getWddm()->init(preemptionMode);
|
||||
DEBUG_BREAK_IF(!success);
|
||||
|
||||
Reference in New Issue
Block a user