Refactor: don't use global ProductHelper getter in L0 3/n
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
parent
5652edb92f
commit
93deff0698
|
@ -79,7 +79,8 @@ void MultiTileCommandListFixtureInit::setUpParams(bool createImmediate, bool cre
|
|||
|
||||
void ModuleMutableCommandListFixture::setUpImpl(uint32_t revision) {
|
||||
if (revision != 0) {
|
||||
auto revId = NEO::ProductHelper::get(device->getHwInfo().platform.eProductFamily)->getHwRevIdFromStepping(revision, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
auto revId = productHelper.getHwRevIdFromStepping(revision, device->getHwInfo());
|
||||
neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo()->platform.usRevId = revId;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ HelperType &DeviceFixture::getHelper() const {
|
|||
}
|
||||
|
||||
template L0GfxCoreHelper &DeviceFixture::getHelper() const;
|
||||
template NEO::ProductHelper &DeviceFixture::getHelper() const;
|
||||
|
||||
void PageFaultDeviceFixture::setUp() {
|
||||
neoDevice = NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(NEO::defaultHwInfo.get());
|
||||
|
|
|
@ -366,7 +366,7 @@ HWTEST2_F(CommandListAppendLaunchKernel,
|
|||
GivenComputeModeTraitsSetToFalsePropertiesWhenUpdateStreamPropertiesIsCalledTwiceThenFieldsAreDirtyWithTrackingAndCleanWithoutTracking,
|
||||
ProgramAllFieldsInComputeMode) {
|
||||
DebugManagerStateRestore restorer;
|
||||
auto &productHelper = *NEO::ProductHelper::get(defaultHwInfo->platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
Mock<::L0::Kernel> kernel;
|
||||
auto mockModule = std::unique_ptr<Module>(new Mock<Module>(device, nullptr));
|
||||
|
@ -770,7 +770,8 @@ using MultiReturnCommandListTest = Test<MultiReturnCommandListFixture>;
|
|||
HWTEST2_F(MultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPropertyDisableEuFusionSupportedThenExpectReturnPointsAndBbEndProgramming, IsAtLeastSkl) {
|
||||
using MI_BATCH_BUFFER_END = typename FamilyType::MI_BATCH_BUFFER_END;
|
||||
NEO::FrontEndPropertiesSupport fePropertiesSupport = {};
|
||||
NEO::ProductHelper::get(productFamily)->fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
|
||||
|
@ -936,7 +937,8 @@ HWTEST2_F(MultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPropertyDis
|
|||
HWTEST2_F(MultiReturnCommandListTest, givenFrontEndTrackingIsUsedWhenPropertyComputeDispatchAllWalkerSupportedThenExpectReturnPointsAndBbEndProgramming, IsAtLeastSkl) {
|
||||
using MI_BATCH_BUFFER_END = typename FamilyType::MI_BATCH_BUFFER_END;
|
||||
NEO::FrontEndPropertiesSupport fePropertiesSupport = {};
|
||||
NEO::ProductHelper::get(productFamily)->fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
|
||||
|
@ -1101,7 +1103,8 @@ HWTEST2_F(MultiReturnCommandListTest,
|
|||
using MI_BATCH_BUFFER_END = typename FamilyType::MI_BATCH_BUFFER_END;
|
||||
|
||||
NEO::FrontEndPropertiesSupport fePropertiesSupport = {};
|
||||
NEO::ProductHelper::get(productFamily)->fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
EXPECT_TRUE(commandQueue->frontEndStateTracking);
|
||||
|
@ -1350,7 +1353,8 @@ HWTEST2_F(MultiReturnCommandListTest,
|
|||
using MI_BATCH_BUFFER_END = typename FamilyType::MI_BATCH_BUFFER_END;
|
||||
|
||||
NEO::FrontEndPropertiesSupport fePropertiesSupport = {};
|
||||
NEO::ProductHelper::get(productFamily)->fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
NEO::DebugManager.flags.AllowMixingRegularAndCooperativeKernels.set(1);
|
||||
|
||||
|
@ -1596,7 +1600,8 @@ HWTEST2_F(MultiReturnCommandListTest,
|
|||
HWTEST2_F(MultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingKernelOnBothRegularFirstThenFrontEndStateIsNotChanged, IsAtLeastSkl) {
|
||||
using VFE_STATE_TYPE = typename FamilyType::VFE_STATE_TYPE;
|
||||
NEO::FrontEndPropertiesSupport fePropertiesSupport = {};
|
||||
NEO::ProductHelper::get(productFamily)->fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
EXPECT_TRUE(commandListImmediate->frontEndStateTracking);
|
||||
|
@ -1721,7 +1726,8 @@ HWTEST2_F(MultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUseSameCsr
|
|||
HWTEST2_F(MultiReturnCommandListTest, givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingKernelOnBothImmediateFirstThenFrontEndStateIsNotChanged, IsAtLeastSkl) {
|
||||
using VFE_STATE_TYPE = typename FamilyType::VFE_STATE_TYPE;
|
||||
NEO::FrontEndPropertiesSupport fePropertiesSupport = {};
|
||||
NEO::ProductHelper::get(productFamily)->fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
auto &productHelper = device->getProductHelper();
|
||||
productHelper.fillFrontEndPropertiesSupportStructure(fePropertiesSupport, device->getHwInfo());
|
||||
|
||||
EXPECT_TRUE(commandList->frontEndStateTracking);
|
||||
EXPECT_TRUE(commandListImmediate->frontEndStateTracking);
|
||||
|
|
|
@ -143,7 +143,8 @@ HWTEST_F(CommandQueueExecuteCommandLists, givenCommandListThatRequiresDisabledEU
|
|||
|
||||
auto result = commandQueue->executeCommandLists(numCommandLists, commandLists, nullptr, true);
|
||||
ASSERT_EQ(ZE_RESULT_SUCCESS, result);
|
||||
bool disableEuFusion = NEO::ProductHelper::get(device->getHwInfo().platform.eProductFamily)->getFrontEndPropertyDisableEuFusionSupport();
|
||||
auto &productHelper = device->getProductHelper();
|
||||
bool disableEuFusion = productHelper.getFrontEndPropertyDisableEuFusionSupport();
|
||||
int32_t expectedDisableEuFusion = (disableEuFusion || commandQueue->frontEndStateTracking) ? 1 : -1;
|
||||
EXPECT_EQ(expectedDisableEuFusion, commandQueue->getCsr()->getStreamProperties().frontEndState.disableEUFusion.value);
|
||||
|
||||
|
|
|
@ -127,7 +127,8 @@ HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, whenUsingFenceThenLastPipeC
|
|||
HWTEST2_F(CommandQueueExecuteCommandListsSimpleTest, givenTwoCommandQueuesUsingSingleCsrWhenExecutingFirstTimeOnBothThenPipelineSelectProgrammedOnce, IsAtMostXeHpcCore) {
|
||||
using PIPELINE_SELECT = typename FamilyType::PIPELINE_SELECT;
|
||||
|
||||
bool additionalPipelineSelect = NEO::ProductHelper::get(device->getHwInfo().platform.eProductFamily)->is3DPipelineSelectWARequired() &&
|
||||
auto &productHelper = device->getProductHelper();
|
||||
bool additionalPipelineSelect = productHelper.is3DPipelineSelectWARequired() &&
|
||||
neoDevice->getDefaultEngine().commandStreamReceiver->isRcs();
|
||||
|
||||
ze_result_t returnValue;
|
||||
|
|
|
@ -1237,7 +1237,7 @@ TEST_F(DeviceTest, givenCallToDevicePropertiesThenMaximumMemoryToBeAllocatedIsCo
|
|||
}
|
||||
|
||||
TEST_F(DeviceTest, whenCheckingIfStatelessCompressionIsSupportedThenReturnFalse) {
|
||||
const auto &productHelper = *ProductHelper::get(defaultHwInfo->platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
EXPECT_FALSE(productHelper.allowStatelessCompression(*defaultHwInfo));
|
||||
}
|
||||
|
||||
|
@ -1691,7 +1691,7 @@ TEST_F(DeviceGetMemoryTests, whenCallingGetMemoryPropertiesWithNonNullPtrThenPro
|
|||
EXPECT_EQ(res, ZE_RESULT_SUCCESS);
|
||||
EXPECT_EQ(1u, count);
|
||||
auto hwInfo = *NEO::defaultHwInfo;
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
EXPECT_EQ(memProperties.maxClockRate, productHelper.getDeviceMemoryMaxClkRate(hwInfo, nullptr, 0));
|
||||
EXPECT_EQ(memProperties.maxBusWidth, this->neoDevice->getDeviceInfo().addressBits);
|
||||
EXPECT_EQ(memProperties.totalSize, this->neoDevice->getDeviceInfo().globalMemSize);
|
||||
|
@ -2278,7 +2278,8 @@ TEST_F(DeviceTests, WhenGettingMemoryAccessPropertiesThenSuccessIsReturned) {
|
|||
EXPECT_EQ(ZE_RESULT_SUCCESS, result);
|
||||
|
||||
auto &hwInfo = device->getHwInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
auto expectedHostAllocCapabilities = static_cast<ze_memory_access_cap_flags_t>(productHelper.getHostMemCapabilities(&hwInfo));
|
||||
EXPECT_EQ(expectedHostAllocCapabilities, properties.hostAllocCapabilities);
|
||||
|
||||
|
|
|
@ -58,7 +58,8 @@ TEST_F(AlocationHelperTests, GivenLinearStreamAllocTypeWhenUseExternalAllocatorF
|
|||
allocationData.type = AllocationType::LINEAR_STREAM;
|
||||
std::unique_ptr<MockMemoryManagerAllocationHelper> mockMemoryManager(new MockMemoryManagerAllocationHelper(*device->getNEODevice()->getExecutionEnvironment()));
|
||||
mockMemoryManager->allocateGraphicsMemory(allocationData);
|
||||
EXPECT_EQ(mockMemoryManager->passedUseLocalMem, ProductHelper::get(device->getHwInfo().platform.eProductFamily)->heapInLocalMem(device->getHwInfo()));
|
||||
auto &productHelper = device->getProductHelper();
|
||||
EXPECT_EQ(mockMemoryManager->passedUseLocalMem, productHelper.heapInLocalMem(device->getHwInfo()));
|
||||
}
|
||||
|
||||
TEST_F(AlocationHelperTests, GivenInternalAllocTypeWhenUseExternalAllocatorForSshAndDshDisabledThenUseLocalMemEqualFalse) {
|
||||
|
|
|
@ -153,7 +153,7 @@ HWTEST_F(ModuleTest, givenBlitterAvailableWhenCopyingPatchedSegmentsThenIsaIsTra
|
|||
EXPECT_TRUE(ki->isIsaCopiedToAllocation());
|
||||
}
|
||||
|
||||
const auto &productHelper = *ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device.getProductHelper();
|
||||
if (productHelper.isBlitCopyRequiredForLocalMemory(hwInfo, *module->getKernelImmutableDataVector()[0]->getIsaGraphicsAllocation())) {
|
||||
EXPECT_EQ(zebinData->numOfKernels, blitterCalled);
|
||||
} else {
|
||||
|
@ -2276,7 +2276,7 @@ HWTEST_F(ModuleTranslationUnitTest, WhenCreatingFromNativeBinaryThenSetsUpRequir
|
|||
|
||||
HWTEST_F(ModuleTranslationUnitTest, WhenCreatingFromNativeBinaryThenSetsUpPackedTargetDeviceBinary) {
|
||||
PatchTokensTestData::ValidEmptyProgram programTokens;
|
||||
const auto &productHelper = *NEO::ProductHelper::get(productFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
NEO::HardwareInfo hwInfo = *NEO::defaultHwInfo;
|
||||
HardwareIpVersion aotConfig = {0};
|
||||
aotConfig.value = productHelper.getProductConfigFromHwInfo(hwInfo);
|
||||
|
|
|
@ -21,7 +21,7 @@ using CommandListStatePrefetchPvcXt = Test<CommandListStatePrefetchXeHpcCore>;
|
|||
|
||||
PVCTEST_F(CommandListStatePrefetchPvcXt, givenCommandBufferIsExhaustedWhenPrefetchApiCalledAndIsPvcXtNotBaseDieA0ThenProgramStatePrefetch) {
|
||||
auto hwInfo = device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
const auto &productHelper = *ProductHelper::get(hwInfo->platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
hwInfo->platform.usDeviceID = pvcXtDeviceIds.front();
|
||||
hwInfo->platform.usRevId = productHelper.getHwRevIdFromStepping(REVISION_B, *hwInfo); // not BD A0
|
||||
checkIfCommandBufferIsExhaustedWhenPrefetchApiCalledThenStatePrefetchProgrammed(hwInfo);
|
||||
|
@ -29,7 +29,7 @@ PVCTEST_F(CommandListStatePrefetchPvcXt, givenCommandBufferIsExhaustedWhenPrefet
|
|||
|
||||
PVCTEST_F(CommandListStatePrefetchPvcXt, givenDebugFlagSetWhenPrefetchApiCalledAndIsPvcXtNotBaseDieA0ThenProgramStatePrefetch) {
|
||||
auto hwInfo = device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
const auto &productHelper = *ProductHelper::get(hwInfo->platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
hwInfo = device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
hwInfo->platform.usDeviceID = pvcXtDeviceIds.front();
|
||||
hwInfo->platform.usRevId = productHelper.getHwRevIdFromStepping(REVISION_B, *hwInfo); // not BD A0
|
||||
|
|
|
@ -24,7 +24,7 @@ using DeviceTestPvcXt = Test<DeviceFixtureXeHpcTests>;
|
|||
PVCTEST_F(DeviceTestPvcXt, whenCallingGetMemoryPropertiesWithNonNullPtrAndRevisionIsNotBaseDieA0OnPvcXtThenMaxClockRateReturnedIsZero) {
|
||||
auto &device = driverHandle->devices[0];
|
||||
auto hwInfo = device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
const auto &productHelper = *ProductHelper::get(hwInfo->platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
hwInfo->platform.usDeviceID = pvcXtDeviceIds.front();
|
||||
hwInfo->platform.usRevId = productHelper.getHwRevIdFromStepping(REVISION_B, *hwInfo); // not BD A0
|
||||
|
||||
|
@ -34,7 +34,7 @@ PVCTEST_F(DeviceTestPvcXt, whenCallingGetMemoryPropertiesWithNonNullPtrAndRevisi
|
|||
using DeviceTestPvc = Test<DeviceFixtureXeHpcTests>;
|
||||
PVCTEST_F(DeviceTestPvc, givenPvcAStepWhenCreatingMultiTileDeviceThenExpectImplicitScalingDisabled) {
|
||||
auto hwInfo = *NEO::defaultHwInfo;
|
||||
const auto &productHelper = *ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = getHelper<NEO::ProductHelper>();
|
||||
hwInfo.platform.usRevId = productHelper.getHwRevIdFromStepping(REVISION_A0, hwInfo);
|
||||
|
||||
DebugManager.flags.CreateMultipleSubDevices.set(2);
|
||||
|
|
|
@ -33,7 +33,7 @@ struct LocalMemoryModuleFixture : public ModuleFixture {
|
|||
using CommandListAppendLaunchKernelXeHpcCore = Test<LocalMemoryModuleFixture>;
|
||||
HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore, givenKernelUsingSyncBufferWhenAppendLaunchCooperativeKernelIsCalledThenCorrectValueIsReturned, IsXeHpcCore) {
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
Mock<::L0::Kernel> kernel;
|
||||
auto pMockModule = std::unique_ptr<Module>(new Mock<Module>(device, nullptr));
|
||||
kernel.module = pMockModule.get();
|
||||
|
@ -569,7 +569,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore,
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -639,7 +639,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore,
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -707,7 +707,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore,
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -763,7 +763,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore,
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -835,7 +835,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore,
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -905,7 +905,7 @@ HWTEST2_F(CommandListAppendLaunchKernelXeHpcCore,
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -1045,7 +1045,7 @@ struct CommandListAppendLaunchMultiKernelEventFixture : public LocalMemoryModule
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *input.device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = input.device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
@ -1107,7 +1107,7 @@ struct CommandListAppendLaunchMultiKernelEventFixture : public LocalMemoryModule
|
|||
ze_result_t result = ZE_RESULT_SUCCESS;
|
||||
|
||||
auto &hwInfo = *input.device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
auto &productHelper = input.device->getProductHelper();
|
||||
|
||||
VariableBackup<unsigned short> hwRevId{&hwInfo.platform.usRevId};
|
||||
hwRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
|
|
@ -24,7 +24,8 @@ HWTEST2_F(CommandListTests, givenDG2WithBSteppingWhenCreatingCommandListThenAddi
|
|||
|
||||
ze_result_t returnValue;
|
||||
auto &hwInfo = *neoDevice->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
const auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
const auto &productHelper = neoDevice->getProductHelper();
|
||||
|
||||
hwInfo.platform.usRevId = productHelper.getHwRevIdFromStepping(REVISION_B, hwInfo);
|
||||
|
||||
std::unique_ptr<L0::CommandList> commandList(CommandList::create(productFamily, device, NEO::EngineGroupType::Compute, 0u, returnValue));
|
||||
|
|
|
@ -339,7 +339,7 @@ struct ProgramAllFieldsInComputeMode {
|
|||
HWTEST2_F(CommandListCreate, GivenComputeModePropertiesWhenUpdateStreamPropertiesIsCalledTwiceThenWithoutTrackingFieldsChangedWithTrackingUpdatedClean, ProgramAllFieldsInComputeMode) {
|
||||
DebugManagerStateRestore restorer;
|
||||
Mock<::L0::Kernel> kernel;
|
||||
auto &productHelper = *NEO::ProductHelper::get(defaultHwInfo->platform.eProductFamily);
|
||||
auto &productHelper = device->getProductHelper();
|
||||
|
||||
auto mockModule = std::unique_ptr<Module>(new Mock<Module>(device, nullptr));
|
||||
kernel.module = mockModule.get();
|
||||
|
|
|
@ -278,7 +278,7 @@ size_t DebugSession::getPerThreadScratchOffset(size_t ptss, EuThread::ThreadId t
|
|||
const uint32_t numEuPerSubslice = hwInfo.gtSystemInfo.MaxEuPerSubSlice;
|
||||
const uint32_t numThreadsPerEu = (hwInfo.gtSystemInfo.ThreadCount / hwInfo.gtSystemInfo.EUCount);
|
||||
|
||||
const auto &productHelper = *NEO::ProductHelper::get(hwInfo.platform.eProductFamily);
|
||||
const auto &productHelper = connectedDevice->getProductHelper();
|
||||
uint32_t threadEuRatio = productHelper.getThreadEuRatioForScratch(hwInfo);
|
||||
uint32_t multiplyFactor = 1;
|
||||
if (threadEuRatio / numThreadsPerEu > 1) {
|
||||
|
|
|
@ -25,8 +25,6 @@ PVCTEST_F(PVCDebugSession, givenPVCRevId3WhenGettingPerThreadScratchOffsetThenPe
|
|||
auto hwInfo = *NEO::defaultHwInfo.get();
|
||||
hwInfo.platform.usRevId = 3;
|
||||
|
||||
const auto &productHelper = *NEO::ProductHelper::get(productFamily);
|
||||
|
||||
NEO::Device *neoDevice(NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(&hwInfo, 0));
|
||||
L0::ult::Mock<L0::DeviceImp> deviceImp(neoDevice, neoDevice->getExecutionEnvironment());
|
||||
auto debugSession = std::make_unique<L0::ult::DebugSessionMock>(zet_debug_config_t{0x1234}, &deviceImp);
|
||||
|
@ -39,6 +37,8 @@ PVCTEST_F(PVCDebugSession, givenPVCRevId3WhenGettingPerThreadScratchOffsetThenPe
|
|||
EuThread::ThreadId thread2EuLastSubslice1 = {0, 0, 1, hwInfo.gtSystemInfo.MaxEuPerSubSlice - 1, 2};
|
||||
|
||||
const uint32_t ptss = 128;
|
||||
const auto &productHelper = neoDevice->getProductHelper();
|
||||
|
||||
const uint32_t ratio = productHelper.getThreadEuRatioForScratch(hwInfo) / numThreadsPerEu;
|
||||
|
||||
EXPECT_EQ(2u, productHelper.getThreadEuRatioForScratch(hwInfo) / numThreadsPerEu);
|
||||
|
|
|
@ -60,8 +60,7 @@ class GpgpuWalkerHelper {
|
|||
const RootDeviceEnvironment &rootDeviceEnvironment);
|
||||
|
||||
static void dispatchPerfCountersCommandsStart(
|
||||
CommandQueue &commandQueue,
|
||||
TagNodeBase &hwPerfCounter,
|
||||
CommandQueue &commandQueue, TagNodeBase &hwPerfCounter,
|
||||
LinearStream *commandStream);
|
||||
|
||||
static void dispatchPerfCountersCommandsEnd(
|
||||
|
|
Loading…
Reference in New Issue