test: Rename regkey BcsNumberOverride to BlitterEnableMaskOverride
BlitterEnableMaskOverride is a bitmask with BCS engines available on device Related-To: NEO-11152 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
parent
05406722b9
commit
b37c2970ce
|
@ -17,7 +17,7 @@ DECLARE_DEBUG_VARIABLE(std::string, AUBDumpFilterKernelName, std::string("unk"),
|
||||||
DECLARE_DEBUG_VARIABLE(std::string, AUBDumpToggleFileName, std::string("unk"), "Name of file to save AUB in toggle mode")
|
DECLARE_DEBUG_VARIABLE(std::string, AUBDumpToggleFileName, std::string("unk"), "Name of file to save AUB in toggle mode")
|
||||||
DECLARE_DEBUG_VARIABLE(std::string, OverrideGdiPath, std::string("unk"), "When different value than \"unk\", will override default path to gdi library.")
|
DECLARE_DEBUG_VARIABLE(std::string, OverrideGdiPath, std::string("unk"), "When different value than \"unk\", will override default path to gdi library.")
|
||||||
DECLARE_DEBUG_VARIABLE(std::string, AubDumpAddMmioRegistersList, std::string("unk"), "Semicolon separated sequence of additional MMIO registers offset;values pairs i.e. 0x111;0x123;0x222;0x456")
|
DECLARE_DEBUG_VARIABLE(std::string, AubDumpAddMmioRegistersList, std::string("unk"), "Semicolon separated sequence of additional MMIO registers offset;values pairs i.e. 0x111;0x123;0x222;0x456")
|
||||||
DECLARE_DEBUG_VARIABLE(int32_t, BcsNumberOverride, -1, "Specify number of BCS engines available on the platform, for use in AUB/TBX mode")
|
DECLARE_DEBUG_VARIABLE(int32_t, BlitterEnableMaskOverride, 0, "Specify bitmask with BCS engines available on the device, for use in AUB/TBX mode")
|
||||||
DECLARE_DEBUG_VARIABLE(int32_t, AUBDumpFilterNamedKernelStartIdx, 0, "Start index of named kernel to AUB capture")
|
DECLARE_DEBUG_VARIABLE(int32_t, AUBDumpFilterNamedKernelStartIdx, 0, "Start index of named kernel to AUB capture")
|
||||||
DECLARE_DEBUG_VARIABLE(int32_t, AUBDumpFilterNamedKernelEndIdx, -1, "End index of named kernel to AUB capture")
|
DECLARE_DEBUG_VARIABLE(int32_t, AUBDumpFilterNamedKernelEndIdx, -1, "End index of named kernel to AUB capture")
|
||||||
DECLARE_DEBUG_VARIABLE(int32_t, AUBDumpSubCaptureMode, 0, "AUB dump subcapture mode (0 - off, 1 - filter by kernel name and/or index range, 2 - toggle on/off with dynamic regkey)")
|
DECLARE_DEBUG_VARIABLE(int32_t, AUBDumpSubCaptureMode, 0, "AUB dump subcapture mode (0 - off, 1 - filter by kernel name and/or index range, 2 - toggle on/off with dynamic regkey)")
|
||||||
|
|
|
@ -97,8 +97,8 @@ bool DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(ExecutionE
|
||||||
setHwInfoValuesFromConfig(hwInfoConfig, *hardwareInfo);
|
setHwInfoValuesFromConfig(hwInfoConfig, *hardwareInfo);
|
||||||
hardwareInfoSetup[hwInfoConst->platform.eProductFamily](hardwareInfo, true, hwInfoConfig, rootDeviceEnvironment.getReleaseHelper());
|
hardwareInfoSetup[hwInfoConst->platform.eProductFamily](hardwareInfo, true, hwInfoConfig, rootDeviceEnvironment.getReleaseHelper());
|
||||||
|
|
||||||
if (debugManager.flags.BcsNumberOverride.get() != -1) {
|
if (debugManager.flags.BlitterEnableMaskOverride.get() > 0) {
|
||||||
hardwareInfo->featureTable.ftrBcsInfo = maxNBitValue(static_cast<uint64_t>(debugManager.flags.BcsNumberOverride.get()));
|
hardwareInfo->featureTable.ftrBcsInfo = debugManager.flags.BlitterEnableMaskOverride.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto &productHelper = rootDeviceEnvironment.getProductHelper();
|
auto &productHelper = rootDeviceEnvironment.getProductHelper();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
TbxServer = 127.0.0.1
|
TbxServer = 127.0.0.1
|
||||||
ProductFamilyOverride = unk
|
ProductFamilyOverride = unk
|
||||||
HardwareInfoOverride = default
|
HardwareInfoOverride = default
|
||||||
BcsNumberOverride = -1
|
BlitterEnableMaskOverride = 0
|
||||||
ForceCompilerUsePlatform = unk
|
ForceCompilerUsePlatform = unk
|
||||||
AUBDumpBufferFormat = unk
|
AUBDumpBufferFormat = unk
|
||||||
AUBDumpImageFormat = unk
|
AUBDumpImageFormat = unk
|
||||||
|
|
|
@ -31,9 +31,9 @@ HWTEST2_F(HwInfoOverrideTest, givenAnyHwConfigStringWhenPrepareDeviceEnvironment
|
||||||
EXPECT_EQ(hwInfo->gtSystemInfo.EUCount, 6u);
|
EXPECT_EQ(hwInfo->gtSystemInfo.EUCount, 6u);
|
||||||
}
|
}
|
||||||
|
|
||||||
HWTEST2_F(HwInfoOverrideTest, givenBcsNumberOverrideWhenPrepareDeviceEnvironmentsForProductFamilyOverrideThenCorrectBcsNumberIsReturned, IsAtLeastXeHpCore) {
|
HWTEST2_F(HwInfoOverrideTest, givenBlitterEnableMaskOverrideWhenPrepareDeviceEnvironmentsForProductFamilyOverrideThenCorrectBcsInfoMaskIsReturned, IsAtLeastXeHpCore) {
|
||||||
DebugManagerStateRestore stateRestore;
|
DebugManagerStateRestore stateRestore;
|
||||||
debugManager.flags.BcsNumberOverride.set(2);
|
debugManager.flags.BlitterEnableMaskOverride.set(0x6);
|
||||||
|
|
||||||
MockExecutionEnvironment executionEnvironment{};
|
MockExecutionEnvironment executionEnvironment{};
|
||||||
|
|
||||||
|
@ -41,5 +41,5 @@ HWTEST2_F(HwInfoOverrideTest, givenBcsNumberOverrideWhenPrepareDeviceEnvironment
|
||||||
EXPECT_TRUE(success);
|
EXPECT_TRUE(success);
|
||||||
|
|
||||||
auto hwInfo = executionEnvironment.rootDeviceEnvironments[0]->getHardwareInfo();
|
auto hwInfo = executionEnvironment.rootDeviceEnvironments[0]->getHardwareInfo();
|
||||||
EXPECT_EQ(hwInfo->featureTable.ftrBcsInfo, maxNBitValue(2));
|
EXPECT_EQ(hwInfo->featureTable.ftrBcsInfo, 0x6);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue