Files
compute-runtime/shared/source/memory_manager/multi_graphics_allocation.h
Krzysztof Gibala b65a41a8a5 Use StackVec in MultiGraphicsAllocation instead of std::vector
Related-To: NEO-4672
Change-Id: Ia7361d9bfb79f83f088e0ac236e769aa44ab84dd
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-08-04 16:57:54 +02:00

36 lines
812 B
C++

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/memory_manager/graphics_allocation.h"
namespace NEO {
class MultiGraphicsAllocation {
public:
MultiGraphicsAllocation(uint32_t maxRootDeviceIndex);
GraphicsAllocation *getDefaultGraphicsAllocation() const;
void addAllocation(GraphicsAllocation *graphicsAllocation);
void removeAllocation(uint32_t rootDeviceIndex);
GraphicsAllocation *getGraphicsAllocation(uint32_t rootDeviceIndex) const;
GraphicsAllocation::AllocationType getAllocationType() const;
bool isCoherent() const;
StackVec<GraphicsAllocation *, 1> const &getGraphicsAllocations() const;
protected:
StackVec<GraphicsAllocation *, 1> graphicsAllocations;
};
} // namespace NEO