mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Remove ensureMemoryOnDevice function
Remove: - ensureMemoryOnDevice - lastUsedRootDeviceIndex - requiredRootDeviceIndex - getMigrateableMultiGraphicsAllocation Related-To: NEO-4589 Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0bc04f3c31
commit
7bfe26a08d
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -8,16 +8,12 @@
|
||||
#pragma once
|
||||
#include "shared/source/memory_manager/graphics_allocation.h"
|
||||
|
||||
#include <mutex>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
class MultiGraphicsAllocation {
|
||||
public:
|
||||
MultiGraphicsAllocation(uint32_t maxRootDeviceIndex);
|
||||
|
||||
MultiGraphicsAllocation(const MultiGraphicsAllocation &obj);
|
||||
|
||||
GraphicsAllocation *getDefaultGraphicsAllocation() const;
|
||||
|
||||
void addAllocation(GraphicsAllocation *graphicsAllocation);
|
||||
@ -32,17 +28,8 @@ class MultiGraphicsAllocation {
|
||||
|
||||
StackVec<GraphicsAllocation *, 1> const &getGraphicsAllocations() const;
|
||||
|
||||
void ensureMemoryOnDevice(MemoryManager &memoryManager, uint32_t requiredRootDeviceIndex);
|
||||
|
||||
uint32_t getLastUsedRootDeviceIndex() const { return lastUsedRootDeviceIndex; }
|
||||
|
||||
protected:
|
||||
StackVec<GraphicsAllocation *, 1> graphicsAllocations;
|
||||
|
||||
uint32_t lastUsedRootDeviceIndex = std::numeric_limits<uint32_t>::max();
|
||||
uint32_t requiredRootDeviceIndex = std::numeric_limits<uint32_t>::max();
|
||||
|
||||
std::mutex transferMutex;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
Reference in New Issue
Block a user