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

Remove: - ensureMemoryOnDevice - lastUsedRootDeviceIndex - requiredRootDeviceIndex - getMigrateableMultiGraphicsAllocation Related-To: NEO-4589 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
36 lines
817 B
C++
36 lines
817 B
C++
/*
|
|
* Copyright (C) 2020-2021 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
|