mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
This is prep work for the future implementation of pooling these allocations. Related-To: NEO-12287 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
25 lines
618 B
C++
25 lines
618 B
C++
/*
|
|
* Copyright (C) 2020-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
namespace NEO {
|
|
|
|
class Device;
|
|
class GraphicsAllocation;
|
|
class SVMAllocsManager;
|
|
struct LinkerInput;
|
|
class SharedPoolAllocation;
|
|
|
|
[[nodiscard]] SharedPoolAllocation *allocateGlobalsSurface(SVMAllocsManager *const svmAllocManager, Device &device,
|
|
size_t totalSize, size_t zeroInitSize, bool constant,
|
|
LinkerInput *const linkerInput, const void *initData);
|
|
|
|
} // namespace NEO
|