refactor: use initialized variable in getHighestEnabledDualSubSlice

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-09-19 17:12:52 +00:00
committed by Compute-Runtime-Automation
parent beb30f8ff0
commit d7d46a9fc5

View File

@@ -96,7 +96,7 @@ uint32_t GfxCoreHelper::getHighestEnabledDualSubSlice(const HardwareInfo &hwInfo
return highestDualSubSlice;
}
uint32_t numDssPerSlice = hwInfo.gtSystemInfo.MaxDualSubSlicesSupported / hwInfo.gtSystemInfo.MaxSlicesSupported;
uint32_t numDssPerSlice = highestDualSubSlice / hwInfo.gtSystemInfo.MaxSlicesSupported;
uint32_t highestEnabledSliceIdx = getHighestEnabledSlice(hwInfo) - 1;
for (uint32_t dssID = 0; dssID < GT_MAX_DUALSUBSLICE_PER_SLICE; dssID++) {