refactor: create new members for storing spill and private memory in scratch

rename private scratch space into scratch space slot 1 as it can be generic

Related-To: NEO-9944
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-01-19 12:38:56 +00:00
committed by Compute-Runtime-Automation
parent 45534fe388
commit 87eb5f554a
63 changed files with 492 additions and 520 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2023 Intel Corporation
* Copyright (C) 2018-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -211,12 +211,8 @@ class Kernel : public ReferenceTrackedObject<Kernel> {
Program *getProgram() const { return program; }
uint32_t getScratchSize() {
return kernelInfo.kernelDescriptor.kernelAttributes.perThreadScratchSize[0];
}
uint32_t getPrivateScratchSize() {
return kernelInfo.kernelDescriptor.kernelAttributes.perThreadScratchSize[1];
uint32_t getScratchSize(uint32_t slotId) {
return kernelInfo.kernelDescriptor.kernelAttributes.perThreadScratchSize[slotId];
}
bool usesSyncBuffer() const;