mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Refactor: dont use global getters for Product/GfxCore helper in engine helpers
Related-To: NEO-6853 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4a87266be1
commit
c8b55e38a0
@@ -548,11 +548,11 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, ContextCreateTests, givenGpuHangOnFlushBcsTaskAndLo
|
||||
auto &selectorCopyEngine = blitDevice->getSelectorCopyEngine();
|
||||
auto deviceBitfield = blitDevice->getDeviceBitfield();
|
||||
|
||||
const auto &hwInfo = testedDevice->getDevice().getHardwareInfo();
|
||||
auto &gfxCoreHelper = GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily);
|
||||
auto &rootDeviceEnvironment = testedDevice->getRootDeviceEnvironment();
|
||||
auto &gfxCoreHelper = rootDeviceEnvironment.getHelper<GfxCoreHelper>();
|
||||
|
||||
auto internalUsage = true;
|
||||
auto bcsEngineType = EngineHelpers::getBcsEngineType(hwInfo, deviceBitfield, selectorCopyEngine, internalUsage);
|
||||
auto bcsEngineType = EngineHelpers::getBcsEngineType(rootDeviceEnvironment, deviceBitfield, selectorCopyEngine, internalUsage);
|
||||
auto bcsEngineUsage = gfxCoreHelper.preferInternalBcsEngine() ? EngineUsage::Internal : EngineUsage::Regular;
|
||||
auto bcsEngine = blitDevice->tryGetEngine(bcsEngineType, bcsEngineUsage);
|
||||
ASSERT_NE(nullptr, bcsEngine);
|
||||
|
||||
Reference in New Issue
Block a user