mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Decouple memory manager and device
Change-Id: Ia64cc955e1d290cad4c50b6a2a41052d9acf0eec
This commit is contained in:
committed by
sys_ocldev
parent
a30d6d66ca
commit
1ad70dfebe
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user