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