mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Reduce the size of masks to 4.
32 is not required. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
afc5596a0a
commit
3d5e34f727
@@ -56,7 +56,7 @@ void LocalMemoryUsageBankSelector::reserveOnBank(uint32_t bankIndex, uint64_t al
|
||||
}
|
||||
|
||||
void LocalMemoryUsageBankSelector::updateUsageInfo(uint32_t memoryBanks, uint64_t allocationSize, bool reserve) {
|
||||
auto banks = std::bitset<32>(memoryBanks);
|
||||
auto banks = std::bitset<4>(memoryBanks);
|
||||
for (uint32_t bankIndex = 0; bankIndex < banks.size() && bankIndex < banksCount; bankIndex++) {
|
||||
if (banks.test(bankIndex)) {
|
||||
if (reserve) {
|
||||
|
||||
Reference in New Issue
Block a user