mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
refactor: determine hp copy engine once after gfx core helper is created
- do not determine engine on every call to getDefaultHpCopyEngine() Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
712ca48cef
commit
a6bf424417
@@ -166,6 +166,7 @@ void RootDeviceEnvironment::initHelpers() {
|
||||
void RootDeviceEnvironment::initGfxCoreHelper() {
|
||||
if (gfxCoreHelper == nullptr) {
|
||||
gfxCoreHelper = GfxCoreHelper::create(this->getHardwareInfo()->platform.eRenderCoreFamily);
|
||||
gfxCoreHelper->initializeDefaultHpCopyEngine(*this->getHardwareInfo());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user