mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
Revert "fix: Unify logic calculating threads per work group part 2"
This reverts commit 1e8a53bd53.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2d7505c01c
commit
39740da9d1
@@ -47,7 +47,7 @@ void LocalIdsCache::setLocalIdsForEntry(LocalIdsCacheEntry &entry, void *destina
|
||||
std::memcpy(destination, entry.localIdsData, entry.localIdsSize);
|
||||
}
|
||||
|
||||
void LocalIdsCache::setLocalIdsForGroup(const Vec3<uint16_t> &group, void *destination, const GfxCoreHelper &gfxCoreHelper) {
|
||||
void LocalIdsCache::setLocalIdsForGroup(const Vec3<uint16_t> &group, void *destination) {
|
||||
auto setLocalIdsLock = lock();
|
||||
LocalIdsCacheEntry *leastAccessedEntry = &cache[0];
|
||||
for (auto &cacheEntry : cache) {
|
||||
@@ -60,11 +60,11 @@ void LocalIdsCache::setLocalIdsForGroup(const Vec3<uint16_t> &group, void *desti
|
||||
}
|
||||
}
|
||||
|
||||
commitNewEntry(*leastAccessedEntry, group, gfxCoreHelper);
|
||||
commitNewEntry(*leastAccessedEntry, group);
|
||||
setLocalIdsForEntry(*leastAccessedEntry, destination);
|
||||
}
|
||||
|
||||
void LocalIdsCache::commitNewEntry(LocalIdsCacheEntry &entry, const Vec3<uint16_t> &group, const GfxCoreHelper &gfxCoreHelper) {
|
||||
void LocalIdsCache::commitNewEntry(LocalIdsCacheEntry &entry, const Vec3<uint16_t> &group) {
|
||||
entry.localIdsSize = getLocalIdsSizeForGroup(group);
|
||||
entry.groupSize = group;
|
||||
entry.accessCounter = 0U;
|
||||
@@ -74,7 +74,7 @@ void LocalIdsCache::commitNewEntry(LocalIdsCacheEntry &entry, const Vec3<uint16_
|
||||
entry.localIdsSizeAllocated = entry.localIdsSize;
|
||||
}
|
||||
NEO::generateLocalIDs(entry.localIdsData, static_cast<uint16_t>(simdSize),
|
||||
{group[0], group[1], group[2]}, wgDimOrder, usesOnlyImages, grfSize, gfxCoreHelper);
|
||||
{group[0], group[1], group[2]}, wgDimOrder, usesOnlyImages, grfSize);
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user