Choose valid bank from memory bank selector

Related-To: NEO-4645

Change-Id: I8d1f63ba24ead2e77ba6381e4770068bf2eb1725
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:
Andrzej Swierczynski
2020-06-23 11:30:01 +02:00
committed by sys_ocldev
parent ef4cc0e685
commit a5e4edb327
9 changed files with 54 additions and 19 deletions

View File

@@ -6,10 +6,10 @@
*/
#pragma once
#include "shared/source/helpers/common_types.h"
#include "shared/source/memory_manager/allocations_list.h"
namespace NEO {
class CommandStreamReceiver;
class InternalAllocationStorage {
public:
@@ -22,6 +22,7 @@ class InternalAllocationStorage {
std::unique_ptr<GraphicsAllocation> obtainTemporaryAllocationWithPtr(size_t requiredSize, const void *requiredPtr, GraphicsAllocation::AllocationType allocationType);
AllocationsList &getTemporaryAllocations() { return temporaryAllocations; }
AllocationsList &getAllocationsForReuse() { return allocationsForReuse; }
DeviceBitfield getDeviceBitfield() const;
protected:
void freeAllocationsList(uint32_t waitTaskCount, AllocationsList &allocationsList);