@@ -326,7 +326,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendEventReset(ze_event_hand
326326 Event::STATE_CLEARED, args, hwInfo);
327327 } else {
328328 NEO::PipeControlArgs args;
329- args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (event->signalScope , hwInfo);
329+ args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (event->signalScope , hwInfo);
330330 size_t estimateSize = NEO::MemorySynchronizationCommands<GfxFamily>::getSizeForPipeControlWithPostSyncOperation (hwInfo) * packetsToReset;
331331 if (this ->partitionCount > 1 ) {
332332 estimateSize += estimateBufferSizeMultiTileBarrier (hwInfo);
@@ -623,7 +623,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendImageCopyToMemory(void *
623623 if (allocationStruct.needsFlush ) {
624624 const auto &hwInfo = this ->device ->getHwInfo ();
625625 NEO::PipeControlArgs args;
626- args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo);
626+ args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo);
627627 NEO::MemorySynchronizationCommands<GfxFamily>::addPipeControl (*commandContainer.getCommandStream (), args);
628628 }
629629
@@ -1037,7 +1037,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendPageFaultCopy(NEO::Graph
10371037 }
10381038
10391039 const auto &hwInfo = this ->device ->getHwInfo ();
1040- if (NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo)) {
1040+ if (NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo)) {
10411041 if (flushHost) {
10421042 NEO::PipeControlArgs args;
10431043 args.dcFlushEnable = true ;
@@ -1159,7 +1159,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopy(void *dstptr,
11591159 appendEventForProfilingAllWalkers (hSignalEvent, false );
11601160
11611161 const auto &hwInfo = this ->device ->getHwInfo ();
1162- if (NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo)) {
1162+ if (NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo)) {
11631163 auto event = Event::fromHandle (hSignalEvent);
11641164 if (event) {
11651165 dstAllocationStruct.needsFlush &= !event->signalScope ;
@@ -1255,7 +1255,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyRegion(void *d
12551255 }
12561256
12571257 const auto &hwInfo = this ->device ->getHwInfo ();
1258- if (NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo)) {
1258+ if (NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo)) {
12591259 auto event = Event::fromHandle (hSignalEvent);
12601260 if (event) {
12611261 dstAllocationStruct.needsFlush &= !event->signalScope ;
@@ -1595,7 +1595,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryFill(void *ptr,
15951595 appendEventForProfilingAllWalkers (hSignalEvent, false );
15961596
15971597 const auto &hwInfo = this ->device ->getHwInfo ();
1598- if (NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo)) {
1598+ if (NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo)) {
15991599 auto event = Event::fromHandle (hSignalEvent);
16001600 if (event) {
16011601 hostPointerNeedsFlush &= !event->signalScope ;
@@ -1691,7 +1691,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendSignalEventPostWalker(ze_event_
16911691 } else {
16921692 increaseCommandStreamSpace (NEO::MemorySynchronizationCommands<GfxFamily>::getSizeForPipeControlWithPostSyncOperation (hwInfo));
16931693 NEO::PipeControlArgs args;
1694- args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (event->signalScope , hwInfo);
1694+ args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (event->signalScope , hwInfo);
16951695 if (this ->partitionCount > 1 ) {
16961696 args.workloadPartitionOffset = true ;
16971697 event->setPacketsInUse (this ->partitionCount );
@@ -1846,7 +1846,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendSignalEvent(ze_event_han
18461846 } else {
18471847 NEO::PipeControlArgs args;
18481848 bool applyScope = event->signalScope ;
1849- args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (applyScope, hwInfo);
1849+ args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (applyScope, hwInfo);
18501850 if (this ->partitionCount > 1 ) {
18511851 args.workloadPartitionOffset = true ;
18521852 event->setPacketsInUse (this ->partitionCount );
@@ -1907,7 +1907,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWaitOnEvents(uint32_t nu
19071907 bool dcFlushRequired = false ;
19081908
19091909 const auto &hwInfo = this ->device ->getHwInfo ();
1910- if (NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo)) {
1910+ if (NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo)) {
19111911 for (uint32_t i = 0 ; i < numEvents; i++) {
19121912 auto event = Event::fromHandle (phEvent[i]);
19131913 dcFlushRequired |= !!event->waitScope ;
@@ -2035,7 +2035,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendEventForProfiling(ze_event_hand
20352035 } else {
20362036 const auto &hwInfo = this ->device ->getHwInfo ();
20372037 NEO::PipeControlArgs args;
2038- args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (event->signalScope , hwInfo);
2038+ args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (event->signalScope , hwInfo);
20392039 NEO::MemorySynchronizationCommands<GfxFamily>::setPostSyncExtraProperties (args,
20402040 hwInfo);
20412041
@@ -2317,7 +2317,7 @@ template <GFXCORE_FAMILY gfxCoreFamily>
23172317void CommandListCoreFamily<gfxCoreFamily>::programStateBaseAddress(NEO::CommandContainer &container, bool genericMediaStateClearRequired) {
23182318 const auto &hwInfo = this ->device ->getHwInfo ();
23192319 NEO::PipeControlArgs args;
2320- args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::isDcFlushAllowed (true , hwInfo);
2320+ args.dcFlushEnable = NEO::MemorySynchronizationCommands<GfxFamily>::getDcFlushEnable (true , hwInfo);
23212321 args.hdcPipelineFlush = true ;
23222322 args.textureCacheInvalidationEnable = true ;
23232323 NEO::MemorySynchronizationCommands<GfxFamily>::addPipeControl (*commandContainer.getCommandStream (), args);
0 commit comments