2020-01-11 18:25:26 +01:00
|
|
|
/*
|
2025-08-18 15:15:55 +00:00
|
|
|
* Copyright (C) 2020-2025 Intel Corporation
|
2020-01-11 18:25:26 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
|
class GraphicsAllocation;
|
|
|
|
|
class SVMAllocsManager;
|
|
|
|
|
struct LinkerInput;
|
2025-08-18 15:15:55 +00:00
|
|
|
class SharedPoolAllocation;
|
2020-01-11 18:25:26 +01:00
|
|
|
|
2025-08-18 15:15:55 +00:00
|
|
|
[[nodiscard]] SharedPoolAllocation *allocateGlobalsSurface(SVMAllocsManager *const svmAllocManager, Device &device,
|
|
|
|
|
size_t totalSize, size_t zeroInitSize, bool constant,
|
|
|
|
|
LinkerInput *const linkerInput, const void *initData);
|
2020-01-11 18:25:26 +01:00
|
|
|
|
|
|
|
|
} // namespace NEO
|