Files
compute-runtime/shared/source/memory_manager/allocations_list.h
Zbigniew Zdanowicz 24ff191e61 Verify completion on all tiles
Related-To: NEO-6244

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-15 15:43:28 +02:00

32 lines
1016 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/memory_manager/memory_manager.h"
#include <mutex>
namespace NEO {
class CommandStreamReceiver;
struct ReusableAllocationRequirements;
class AllocationsList : public IDList<GraphicsAllocation, true, true> {
public:
AllocationsList(AllocationUsage allocationUsage);
AllocationsList();
std::unique_ptr<GraphicsAllocation> detachAllocation(size_t requiredMinimalSize, const void *requiredPtr, CommandStreamReceiver *commandStreamReceiver, GraphicsAllocation::AllocationType allocationType);
void freeAllGraphicsAllocations(Device *neoDevice);
private:
GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *);
bool checkTagAddressReady(ReusableAllocationRequirements *requirements, GraphicsAllocation *gfxAllocation);
const AllocationUsage allocationUsage;
};
} // namespace NEO