mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-4624 Change-Id: I74ac6b0d4b9a7de689e68b12c23f7baa40f25304 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
28 lines
786 B
C++
28 lines
786 B
C++
/*
|
|
* Copyright (C) 2018-2020 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;
|
|
|
|
class AllocationsList : public IDList<GraphicsAllocation, true, true> {
|
|
public:
|
|
AllocationsList(AllocationUsage allocationUsage);
|
|
std::unique_ptr<GraphicsAllocation> detachAllocation(size_t requiredMinimalSize, const void *requiredPtr, CommandStreamReceiver &commandStreamReceiver, GraphicsAllocation::AllocationType allocationType);
|
|
|
|
private:
|
|
GraphicsAllocation *detachAllocationImpl(GraphicsAllocation *, void *);
|
|
|
|
const AllocationUsage allocationUsage;
|
|
};
|
|
} // namespace NEO
|