mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Move pvcSteppingBits to PVC struct
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6738
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
737e6e4de5
commit
c56046fd29
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -47,6 +47,8 @@ struct PVC : public XE_HPC_COREFamily {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static constexpr uint32_t pvcSteppingBits = 0b111;
|
||||
};
|
||||
|
||||
class PVC_CONFIG : public PVC {
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user