2018-10-09 11:50:58 +02:00
|
|
|
/*
|
2019-02-01 13:49:24 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-10-09 11:50:58 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2019-02-01 13:49:24 +01:00
|
|
|
#include "runtime/memory_manager/graphics_allocation.h"
|
2018-10-09 11:50:58 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-11-02 10:01:56 +01:00
|
|
|
class CommandStreamReceiver;
|
2018-10-09 11:50:58 +02:00
|
|
|
|
|
|
|
|
class AllocationsList : public IDList<GraphicsAllocation, true, true> {
|
|
|
|
|
public:
|
2019-02-01 13:49:24 +01:00
|
|
|
std::unique_ptr<GraphicsAllocation> detachAllocation(size_t requiredMinimalSize, CommandStreamReceiver &commandStreamReceiver, GraphicsAllocation::AllocationType allocationType);
|
2018-10-09 11:50:58 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *);
|
|
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|