refactor: unify prefetch encode methods

Related-To: NEO-14703

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2025-06-02 13:55:17 +00:00
committed by Compute-Runtime-Automation
parent 76af9fbb31
commit a015188166
6 changed files with 51 additions and 147 deletions

View File

@@ -7178,10 +7178,10 @@ struct STATE_PREFETCH {
}
inline void setPrefetchSize(const uint32_t value) {
TheStructure.Common.PrefetchSize = value;
TheStructure.Common.PrefetchSize = value - 1; // patched
}
inline uint32_t getPrefetchSize() const {
return TheStructure.Common.PrefetchSize;
return TheStructure.Common.PrefetchSize + 1; // patched
}
inline void setKernelInstructionPrefetch(const bool value) {