Files
compute-runtime/shared/source/memory_manager/multi_graphics_allocation.h
Mateusz Jablonski c96fd30e4c Pass root device index to Buffer::setArgStateful
Related-To: NEO-4672
Change-Id: Ic846eac488809bd7d9534bb7378d9398acd36451
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-30 15:26:55 +02:00

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