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:
Krzysztof Gibala
2021-03-26 15:54:43 +00:00
committed by Compute-Runtime-Automation
parent 0bc04f3c31
commit 7bfe26a08d
23 changed files with 18 additions and 795 deletions

View File

@ -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