Do not check tag value for temporary allocations

Related-To: NEO-4624
Change-Id: I74ac6b0d4b9a7de689e68b12c23f7baa40f25304
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2020-06-10 11:49:34 +02:00
committed by sys_ocldev
parent 0d7d2c0be0
commit 3d919ed96c
3 changed files with 46 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include "shared/source/memory_manager/graphics_allocation.h"
#include "shared/source/memory_manager/memory_manager.h"
#include <mutex>
@@ -15,9 +16,12 @@ 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