mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
Revert "refactor: create new members for storing spill and private memory in ...
This reverts commit 87eb5f554a.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b34e8646ac
commit
f9f9035b95
@@ -1540,12 +1540,7 @@ DecodeError populateKernelPerThreadMemoryBuffer(KernelDescriptor &dst, const Ker
|
||||
dst.kernelAttributes.perHwThreadPrivateMemorySize = size;
|
||||
break;
|
||||
case AllocationTypeScratch:
|
||||
|
||||
if (src.slot == 0) {
|
||||
dst.kernelAttributes.spillFillScratchMemorySize = src.size;
|
||||
} else if (src.slot == 1) {
|
||||
dst.kernelAttributes.privateScratchMemorySize = src.size;
|
||||
} else {
|
||||
if (src.slot > 1) {
|
||||
outErrReason.append("DeviceBinaryFormat::zebin : Invalid scratch buffer slot " + std::to_string(src.slot) + " in context of : " + dst.kernelMetadata.kernelName + ". Expected 0 or 1.\n");
|
||||
return DecodeError::invalidBinary;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user