mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Reorganize sync commands in static partitioning
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b04118128a
commit
95966711fe
@@ -667,7 +667,6 @@ void constructStaticallyPartitionedCommandBuffer(void *cpuPointer,
|
||||
// Load partition ID to wparid register and execute walker
|
||||
programMiLoadRegisterMem<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, workPartitionAllocationGpuVa, wparidCCSOffset);
|
||||
programPartitionedWalker<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, inputWalker, partitionCount);
|
||||
programPipeControlCommand<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, true); // flush L3 cache
|
||||
|
||||
// Prepare for cleanup section
|
||||
if (nativeCrossTileAtomicSync) {
|
||||
@@ -675,6 +674,8 @@ void constructStaticallyPartitionedCommandBuffer(void *cpuPointer,
|
||||
programNativeCrossTileSyncControl<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, finalSyncTileCountField);
|
||||
}
|
||||
|
||||
programPipeControlCommand<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, true); // flush L3 cache
|
||||
|
||||
// Synchronize tiles after walker
|
||||
if (isSemaphoreProgrammingRequired()) {
|
||||
programTilesSynchronizationWithPostSyncs<GfxFamily>(currentBatchBufferPointer, totalBytesProgrammed, inputWalker, partitionCount);
|
||||
|
||||
Reference in New Issue
Block a user