mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
fix: flush necessary caches when dispatch pipe control
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7a9170aacc
commit
750b5ba89a
@@ -245,6 +245,7 @@ void MemorySynchronizationCommands<GfxFamily>::setSingleBarrier(void *commandsBu
|
||||
PIPE_CONTROL pipeControl = GfxFamily::cmdInitPipeControl;
|
||||
|
||||
pipeControl.setCommandStreamerStallEnable(true);
|
||||
setBarrierExtraProperties(&pipeControl, args);
|
||||
|
||||
if (args.csStallOnly) {
|
||||
*reinterpret_cast<PIPE_CONTROL *>(commandsBuffer) = pipeControl;
|
||||
@@ -268,7 +269,6 @@ void MemorySynchronizationCommands<GfxFamily>::setSingleBarrier(void *commandsBu
|
||||
if constexpr (GfxFamily::isUsingGenericMediaStateClear) {
|
||||
pipeControl.setGenericMediaStateClear(args.genericMediaStateClear);
|
||||
}
|
||||
setBarrierExtraProperties(&pipeControl, args);
|
||||
|
||||
if (DebugManager.flags.FlushAllCaches.get()) {
|
||||
pipeControl.setDcFlushEnable(true);
|
||||
|
||||
Reference in New Issue
Block a user