Skip to content

Commit 192efac

Browse files
weiyu-chenpaigeale
authored andcommitted
Do not flush L1 for SLM fence
Change-Id: Ica3b05209fc624870d342bee50a6fb483f84d113
1 parent d1dff9b commit 192efac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

visa/TranslationInterface.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,8 @@ G4_INST* IR_Builder::createFenceInstruction( uint8_t flushParam, bool commitEnab
18581858
}
18591859

18601860
int flushBits = (flushParam >> 1) & 0xF;
1861-
bool L1Flush = (flushParam & L1_FLUSH_MASK) != 0;
1861+
bool L1Flush = (flushParam & L1_FLUSH_MASK) != 0 &&
1862+
!(hasSLMFence() && !globalMemFence);
18621863

18631864
int desc = 0x7 << 14 | ((commitEnable ? 1 : 0) << 13 );
18641865

0 commit comments

Comments
 (0)