mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Fix private surface size calculation
Change-Id: Iebbbdf2bfa76173c6181d8a26838114fabf6cbe1 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0f31b5cc8b
commit
e3e8f1ddf2
@@ -17,7 +17,7 @@ struct KernelHelper {
|
||||
|
||||
static uint64_t getPrivateSurfaceSize(uint64_t perThreadPrivateMemorySize, uint32_t computeUnitsUsedForScratch, uint32_t simdSize, bool isSimtThread) {
|
||||
uint64_t size = perThreadPrivateMemorySize * computeUnitsUsedForScratch;
|
||||
if (!isSimtThread) {
|
||||
if (isSimtThread) {
|
||||
size *= simdSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user