mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-4672 Change-Id: Ic846eac488809bd7d9534bb7378d9398acd36451 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
35 lines
813 B
C++
35 lines
813 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
|
#include "shared/source/memory_manager/graphics_allocation.h"
|
|
|
|
namespace NEO {
|
|
|
|
class MultiGraphicsAllocation : NonCopyableClass {
|
|
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;
|
|
|
|
protected:
|
|
std::vector<GraphicsAllocation *> graphicsAllocations;
|
|
};
|
|
|
|
} // namespace NEO
|