mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Resolves: NEO-3582 Change-Id: Ia871adc38a9737dc57c187557573b02cc321b3e5 Signed-off-by: Zdunowski, Piotr <piotr.zdunowski@intel.com>
24 lines
597 B
C++
24 lines
597 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "core/memory_manager/graphics_allocation.h"
|
|
|
|
#include <mutex>
|
|
|
|
namespace NEO {
|
|
class CommandStreamReceiver;
|
|
|
|
class AllocationsList : public IDList<GraphicsAllocation, true, true> {
|
|
public:
|
|
std::unique_ptr<GraphicsAllocation> detachAllocation(size_t requiredMinimalSize, CommandStreamReceiver &commandStreamReceiver, GraphicsAllocation::AllocationType allocationType);
|
|
|
|
private:
|
|
GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *);
|
|
};
|
|
} // namespace NEO
|