mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Refactor: dont use global gfxCoreHelper getter in l0 files 1/n
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8d18a0cd12
commit
916b740e7d
@@ -335,7 +335,7 @@ struct EngineInstancedDeviceTests : public ::testing::Test {
|
||||
auto &gfxCoreHelper = rootDeviceEnvironment.getHelper<GfxCoreHelper>();
|
||||
gfxCoreHelper.adjustDefaultEngineType(hwInfo);
|
||||
|
||||
if (!multiCcsDevice(*hwInfo, numCcs)) {
|
||||
if (!multiCcsDevice(rootDeviceEnvironment, numCcs)) {
|
||||
return false;
|
||||
}
|
||||
executionEnvironment->parseAffinityMask();
|
||||
@@ -378,8 +378,10 @@ struct EngineInstancedDeviceTests : public ::testing::Test {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool multiCcsDevice(const HardwareInfo &hwInfo, uint32_t expectedNumCcs) {
|
||||
auto gpgpuEngines = GfxCoreHelper::get(hwInfo.platform.eRenderCoreFamily).getGpgpuEngineInstances(hwInfo);
|
||||
bool multiCcsDevice(const RootDeviceEnvironment &rootDeviceEnvironment, uint32_t expectedNumCcs) {
|
||||
auto &hwInfo = *rootDeviceEnvironment.getHardwareInfo();
|
||||
auto &gfxCoreHelper = rootDeviceEnvironment.getHelper<GfxCoreHelper>();
|
||||
auto gpgpuEngines = gfxCoreHelper.getGpgpuEngineInstances(hwInfo);
|
||||
|
||||
uint32_t numCcs = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user