mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
Resolves: NEO-4123 Change-Id: I44e9de4f1bf576adbbe8d69d1ec2c6ae1bbca35f Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
24 lines
631 B
C++
24 lines
631 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/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, const void *requiredPtr, CommandStreamReceiver &commandStreamReceiver, GraphicsAllocation::AllocationType allocationType);
|
|
|
|
private:
|
|
GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *);
|
|
};
|
|
} // namespace NEO
|