Decouple memory manager and device

Change-Id: Ia64cc955e1d290cad4c50b6a2a41052d9acf0eec
This commit is contained in:
Stefanowski, Adam
2018-08-16 11:18:05 +02:00
committed by sys_ocldev
parent a30d6d66ca
commit 1ad70dfebe
19 changed files with 106 additions and 105 deletions

View File

@@ -27,6 +27,7 @@
#include "runtime/memory_manager/residency_container.h"
#include <vector>
namespace OCLRT {
class Device;
class Event;
class FlushStampTracker;
class GraphicsAllocation;
@@ -56,7 +57,7 @@ struct BatchBuffer {
};
struct CommandBuffer : public IDNode<CommandBuffer> {
CommandBuffer();
CommandBuffer(Device &);
ResidencyContainer surfaces;
BatchBuffer batchBuffer;
void *batchBufferEndLocation = nullptr;
@@ -65,6 +66,7 @@ struct CommandBuffer : public IDNode<CommandBuffer> {
void *pipeControlThatMayBeErasedLocation = nullptr;
void *epiloguePipeControlLocation = nullptr;
std::unique_ptr<FlushStampTracker> flushStamp;
Device &device;
};
struct CommandBufferList : public IDList<CommandBuffer, false, true, false> {};
@@ -81,4 +83,4 @@ class SubmissionAggregator {
CommandBufferList cmdBuffers;
uint32_t inspectionId = 1;
};
} // namespace OCLRT
} // namespace OCLRT