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:
Compute-Runtime-Validation
2023-07-02 06:46:43 +02:00
committed by Compute-Runtime-Automation
parent 2d7505c01c
commit 39740da9d1
19 changed files with 53 additions and 88 deletions

View File

@@ -12,7 +12,7 @@
#include <mutex>
namespace NEO {
class GfxCoreHelper;
class LocalIdsCache {
public:
struct LocalIdsCacheEntry {
@@ -30,13 +30,13 @@ class LocalIdsCache {
LocalIdsCache(size_t cacheSize, std::array<uint8_t, 3> wgDimOrder, uint8_t simdSize, uint8_t grfSize, bool usesOnlyImages = false);
~LocalIdsCache();
void setLocalIdsForGroup(const Vec3<uint16_t> &group, void *destination, const GfxCoreHelper &gfxCoreHelper);
void setLocalIdsForGroup(const Vec3<uint16_t> &group, void *destination);
size_t getLocalIdsSizeForGroup(const Vec3<uint16_t> &group) const;
size_t getLocalIdsSizePerThread() const;
protected:
void setLocalIdsForEntry(LocalIdsCacheEntry &entry, void *destination);
void commitNewEntry(LocalIdsCacheEntry &entry, const Vec3<uint16_t> &group, const GfxCoreHelper &gfxCoreHelper);
void commitNewEntry(LocalIdsCacheEntry &entry, const Vec3<uint16_t> &group);
std::unique_lock<std::mutex> lock();
StackVec<LocalIdsCacheEntry, 4> cache;