File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (C) 2018 Intel Corporation
2+ * Copyright (C) 2018-2019 Intel Corporation
33 *
44 * SPDX-License-Identifier: MIT
55 *
@@ -95,6 +95,8 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
9595
9696 static void emitNoop (LinearStream &commandStream, size_t bytesToUpdate);
9797
98+ bool detectInitProgrammingFlagsRequired (const DispatchFlags &dispatchFlags) const ;
99+
98100 HeapDirtyState dshState;
99101 HeapDirtyState iohState;
100102 HeapDirtyState sshState;
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
165165 if (DebugManager.flags .ForceCsrFlushing .get ()) {
166166 flushBatchedSubmissions ();
167167 }
168- if (DebugManager. flags . ForceCsrReprogramming . get ( )) {
168+ if (detectInitProgrammingFlagsRequired (dispatchFlags )) {
169169 initProgrammingFlags ();
170170 }
171171
@@ -407,7 +407,6 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
407407 GraphicsAllocation *chainedBatchBuffer = nullptr ;
408408
409409 if (submitTask) {
410- programMediaSampler (commandStreamTask, dispatchFlags);
411410 this ->addBatchBufferEnd (commandStreamTask, &bbEndLocation);
412411 this ->emitNoop (commandStreamTask, bbEndPaddingSize);
413412 this ->alignToCacheLine (commandStreamTask);
@@ -812,4 +811,9 @@ template <typename GfxFamily>
812811uint64_t CommandStreamReceiverHw<GfxFamily>::getScratchPatchAddress() {
813812 return scratchSpaceController->getScratchPatchAddress ();
814813}
814+
815+ template <typename GfxFamily>
816+ bool CommandStreamReceiverHw<GfxFamily>::detectInitProgrammingFlagsRequired(const DispatchFlags &dispatchFlags) const {
817+ return DebugManager.flags .ForceCsrReprogramming .get ();
818+ }
815819} // namespace OCLRT
You can’t perform that action at this time.
0 commit comments