PVC: Fix compute units for scratch calculation
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
parent
c8ba97e492
commit
b8028d79c7
|
@ -1069,7 +1069,7 @@ XE_HPC_CORETEST_F(HwHelperTestsXeHpcCore, GivenRevisionIdWhenGetComputeUnitsUsed
|
|||
{0x3, 16},
|
||||
{0x5, 16},
|
||||
{0x6, 16},
|
||||
{0x7, 8},
|
||||
{0x7, 16},
|
||||
};
|
||||
|
||||
for (auto &testInput : testInputs) {
|
||||
|
|
|
@ -411,7 +411,7 @@ uint32_t HwHelperHw<Family>::getComputeUnitsUsedForScratch(const HardwareInfo *p
|
|||
}
|
||||
|
||||
auto revId = pHwInfo->platform.usRevId & Family::pvcSteppingBits;
|
||||
uint32_t threadEuRatio = ((0x3 <= revId) && (revId <= 0x6) && !Family::isXtTemporary(*pHwInfo)) ? 16 : 8;
|
||||
uint32_t threadEuRatio = ((0x3 <= revId) && !Family::isXtTemporary(*pHwInfo)) ? 16 : 8;
|
||||
|
||||
return pHwInfo->gtSystemInfo.MaxSubSlicesSupported * pHwInfo->gtSystemInfo.MaxEuPerSubSlice * threadEuRatio;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue