refactor: split sync buffer and region allocation creation code

- split the allocation code from command list or kernel
- allow to call allocation code in all parts of the driver

Related-To: NEO-13350

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2024-11-28 09:59:31 +00:00
committed by Compute-Runtime-Automation
parent f2b0dad964
commit c5ed6bf73c
8 changed files with 71 additions and 36 deletions

View File

@@ -25,8 +25,6 @@ class SyncBufferHandler : NonCopyableOrMovableClass {
SyncBufferHandler(Device &device);
template <typename KernelT>
void prepareForEnqueue(size_t workGroupsCount, KernelT &kernel);
void makeResident(CommandStreamReceiver &csr);
std::pair<GraphicsAllocation *, size_t> obtainAllocationAndOffset(size_t requiredSize);