mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
45534fe388
commit
87eb5f554a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user