Move pvcSteppingBits to PVC struct

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6738
This commit is contained in:
Kamil Kopryk
2022-03-24 10:23:41 +00:00
committed by Compute-Runtime-Automation
parent 737e6e4de5
commit c56046fd29
5 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,7 @@ bool HwInfoConfigHw<gfxProduct>::isComputeDispatchAllWalkerEnableInComputeWalker
template <>
uint32_t HwInfoConfigHw<gfxProduct>::getThreadEuRatioForScratch(const HardwareInfo &hwInfo) const {
auto revId = hwInfo.platform.usRevId & XE_HPC_COREFamily::pvcSteppingBits;
auto revId = hwInfo.platform.usRevId & PVC::pvcSteppingBits;
return (0x3 <= revId) ? 16u : 8u;
}

View File

@ -29,7 +29,6 @@ struct XE_HPC_CORE {
static constexpr uint8_t pvcBaseDieRevMask = 0b111000; // [3:5]
static constexpr uint8_t pvcBaseDieA0Masked = 0; // [3:5] == 0
static constexpr uint32_t pvcSteppingBits = 0b111;
static constexpr bool isUsingL3Control = false;
static constexpr bool isUsingMediaSamplerDopClockGate = false;

View File

@ -47,6 +47,8 @@ struct PVC : public XE_HPC_COREFamily {
}
return false;
}
static constexpr uint32_t pvcSteppingBits = 0b111;
};
class PVC_CONFIG : public PVC {

View File

@ -38,7 +38,7 @@ uint32_t HwInfoConfigHw<gfxProduct>::getHwRevIdFromStepping(uint32_t stepping, c
template <>
uint32_t HwInfoConfigHw<gfxProduct>::getSteppingFromHwRevId(const HardwareInfo &hwInfo) const {
switch (hwInfo.platform.usRevId & XE_HPC_COREFamily::pvcSteppingBits) {
switch (hwInfo.platform.usRevId & PVC::pvcSteppingBits) {
case 0x0:
case 0x1:
case 0x3: