Skip to content

Commit 3a09ea3

Browse files
Revert "refactor: reduce batch buffer struct size"
This reverts commit 97ecf58. Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
1 parent 7a09c51 commit 3a09ea3

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

shared/source/command_stream/submissions_aggregator.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ NEO::BatchBuffer::BatchBuffer(GraphicsAllocation *commandBufferAllocation, size_
100100
bool hasRelaxedOrderingDependencies, bool dispatchMonitorFence)
101101
: commandBufferAllocation(commandBufferAllocation), startOffset(startOffset),
102102
chainedBatchBufferStartOffset(chainedBatchBufferStartOffset), taskStartAddress(taskStartAddress), chainedBatchBuffer(chainedBatchBuffer),
103-
sliceCount(sliceCount), usedSize(usedSize), stream(stream), endCmdPtr(endCmdPtr), numCsrClients(numCsrClients),
104-
throttle(throttle), dispatchMonitorFence(dispatchMonitorFence), hasRelaxedOrderingDependencies(hasRelaxedOrderingDependencies),
105-
hasStallingCmds(hasStallingCmds), lowPriority(lowPriority) {}
103+
lowPriority(lowPriority),
104+
throttle(throttle), sliceCount(sliceCount),
105+
usedSize(usedSize), stream(stream), endCmdPtr(endCmdPtr), numCsrClients(numCsrClients), hasStallingCmds(hasStallingCmds),
106+
hasRelaxedOrderingDependencies(hasRelaxedOrderingDependencies), dispatchMonitorFence(dispatchMonitorFence) {}
106107

107108
NEO::CommandBuffer::CommandBuffer(Device &device) : device(device) {
108109
flushStamp.reset(new FlushStampTracker(false));

shared/source/command_stream/submissions_aggregator.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ struct BatchBuffer {
4343
uint64_t taskStartAddress = 0; // if task not available, use CSR stream
4444

4545
GraphicsAllocation *chainedBatchBuffer = nullptr;
46+
bool lowPriority = false;
47+
QueueThrottle throttle = QueueThrottle::MEDIUM;
4648
uint64_t sliceCount = QueueSliceCount::defaultSliceCount;
4749
size_t usedSize = 0u;
4850

@@ -51,13 +53,11 @@ struct BatchBuffer {
5153
void *endCmdPtr = nullptr;
5254
uint32_t numCsrClients = 0;
5355

54-
QueueThrottle throttle = QueueThrottle::MEDIUM;
55-
bool disableFlatRingBuffer = false;
56-
bool dispatchMonitorFence = false;
57-
bool hasRelaxedOrderingDependencies = false;
5856
bool hasStallingCmds = false;
59-
bool lowPriority = false;
57+
bool hasRelaxedOrderingDependencies = false;
6058
bool ringBufferRestartRequest = false;
59+
bool disableFlatRingBuffer = false;
60+
bool dispatchMonitorFence = false;
6161
};
6262

6363
struct CommandBuffer : public IDNode<CommandBuffer> {

0 commit comments

Comments
 (0)