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:
Mateusz Hoppe
2024-09-09 15:31:19 +00:00
committed by Compute-Runtime-Automation
parent 712ca48cef
commit a6bf424417
4 changed files with 32 additions and 26 deletions

View File

@@ -166,6 +166,7 @@ void RootDeviceEnvironment::initHelpers() {
void RootDeviceEnvironment::initGfxCoreHelper() {
if (gfxCoreHelper == nullptr) {
gfxCoreHelper = GfxCoreHelper::create(this->getHardwareInfo()->platform.eRenderCoreFamily);
gfxCoreHelper->initializeDefaultHpCopyEngine(*this->getHardwareInfo());
}
}