mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: correctly initialize GfxCoreHelper from HwInfo
Related-To: NEO-11983 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
db5f77d207
commit
8698b5504b
@@ -157,16 +157,22 @@ CompilerInterface *RootDeviceEnvironment::getCompilerInterface() {
|
||||
void RootDeviceEnvironment::initHelpers() {
|
||||
initProductHelper();
|
||||
initGfxCoreHelper();
|
||||
initializeGfxCoreHelperFromHwInfo();
|
||||
initApiGfxCoreHelper();
|
||||
initCompilerProductHelper();
|
||||
initReleaseHelper();
|
||||
initAilConfigurationHelper();
|
||||
}
|
||||
|
||||
void RootDeviceEnvironment::initializeGfxCoreHelperFromHwInfo() {
|
||||
if (gfxCoreHelper != nullptr) {
|
||||
gfxCoreHelper->initializeDefaultHpCopyEngine(*this->getHardwareInfo());
|
||||
}
|
||||
}
|
||||
|
||||
void RootDeviceEnvironment::initGfxCoreHelper() {
|
||||
if (gfxCoreHelper == nullptr) {
|
||||
gfxCoreHelper = GfxCoreHelper::create(this->getHardwareInfo()->platform.eRenderCoreFamily);
|
||||
gfxCoreHelper->initializeDefaultHpCopyEngine(*this->getHardwareInfo());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ struct RootDeviceEnvironment : NonCopyableClass {
|
||||
void initProductHelper();
|
||||
void initHelpers();
|
||||
void initGfxCoreHelper();
|
||||
void initializeGfxCoreHelperFromHwInfo();
|
||||
void initApiGfxCoreHelper();
|
||||
void initCompilerProductHelper();
|
||||
void initReleaseHelper();
|
||||
|
||||
@@ -617,6 +617,8 @@ int Drm::setupHardwareInfo(const DeviceDescriptor *device, bool setupFeatureTabl
|
||||
setupCacheInfo(*hwInfo);
|
||||
hwInfo->capabilityTable.deviceName = device->devName;
|
||||
|
||||
rootDeviceEnvironment.initializeGfxCoreHelperFromHwInfo();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ bool Wddm::init() {
|
||||
productHelper.adjustPlatformForProductFamily(hardwareInfo);
|
||||
rootDeviceEnvironment.initApiGfxCoreHelper();
|
||||
rootDeviceEnvironment.initGfxCoreHelper();
|
||||
rootDeviceEnvironment.initializeGfxCoreHelperFromHwInfo();
|
||||
rootDeviceEnvironment.initAilConfigurationHelper();
|
||||
if (false == rootDeviceEnvironment.initAilConfiguration()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user