mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Fix CFE_MAX threads programming
Resolves: NEO-6361 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
98eb086160
commit
e03a50174a
@@ -5863,10 +5863,10 @@ typedef struct tagCFE_STATE {
|
||||
}
|
||||
inline void setMaximumNumberOfThreads(const uint32_t value) {
|
||||
UNRECOVERABLE_IF(value > 0xffff0000);
|
||||
TheStructure.Common.MaximumNumberOfThreads = value - 1;
|
||||
TheStructure.Common.MaximumNumberOfThreads = value;
|
||||
}
|
||||
inline uint32_t getMaximumNumberOfThreads(void) const {
|
||||
return TheStructure.Common.MaximumNumberOfThreads + 1;
|
||||
return TheStructure.Common.MaximumNumberOfThreads;
|
||||
}
|
||||
} CFE_STATE;
|
||||
STATIC_ASSERT(24 == sizeof(CFE_STATE));
|
||||
|
||||
Reference in New Issue
Block a user