File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (C) 2018 Intel Corporation
2
+ * Copyright (C) 2018-2019 Intel Corporation
3
3
*
4
4
* SPDX-License-Identifier: MIT
5
5
*
@@ -95,6 +95,8 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
95
95
96
96
static void emitNoop (LinearStream &commandStream, size_t bytesToUpdate);
97
97
98
+ bool detectInitProgrammingFlagsRequired (const DispatchFlags &dispatchFlags) const ;
99
+
98
100
HeapDirtyState dshState;
99
101
HeapDirtyState iohState;
100
102
HeapDirtyState sshState;
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
165
165
if (DebugManager.flags .ForceCsrFlushing .get ()) {
166
166
flushBatchedSubmissions ();
167
167
}
168
- if (DebugManager. flags . ForceCsrReprogramming . get ( )) {
168
+ if (detectInitProgrammingFlagsRequired (dispatchFlags )) {
169
169
initProgrammingFlags ();
170
170
}
171
171
@@ -407,7 +407,6 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
407
407
GraphicsAllocation *chainedBatchBuffer = nullptr ;
408
408
409
409
if (submitTask) {
410
- programMediaSampler (commandStreamTask, dispatchFlags);
411
410
this ->addBatchBufferEnd (commandStreamTask, &bbEndLocation);
412
411
this ->emitNoop (commandStreamTask, bbEndPaddingSize);
413
412
this ->alignToCacheLine (commandStreamTask);
@@ -812,4 +811,9 @@ template <typename GfxFamily>
812
811
uint64_t CommandStreamReceiverHw<GfxFamily>::getScratchPatchAddress() {
813
812
return scratchSpaceController->getScratchPatchAddress ();
814
813
}
814
+
815
+ template <typename GfxFamily>
816
+ bool CommandStreamReceiverHw<GfxFamily>::detectInitProgrammingFlagsRequired(const DispatchFlags &dispatchFlags) const {
817
+ return DebugManager.flags .ForceCsrReprogramming .get ();
818
+ }
815
819
} // namespace OCLRT
You can’t perform that action at this time.
0 commit comments