Skip to content

Commit 50ea5d8

Browse files
weiyu-chensys_zuul
authored andcommitted
Small refactoring for typed write fusion capability check.
Change-Id: I4a40f84f2585def69497a1908fd60663b3b1c6aa
1 parent f1fcf29 commit 50ea5d8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4205,7 +4205,7 @@ namespace IGC
42054205
SaveOption(vISA_GlobalSendVarSplit, true);
42064206
}
42074207

4208-
if (IGC_IS_FLAG_ENABLED(FuseTypedWrite))
4208+
if (m_program->m_Platform->canFuseTypedWrite())
42094209
{
42104210
SaveOption(vISA_FuseTypedWrites, true);
42114211
}

IGC/Compiler/CISACodeGen/Platform.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ namespace IGC
377377
{
378378
return false;
379379
}
380+
381+
bool canFuseTypedWrite() const
382+
{
383+
return IGC_IS_FLAG_ENABLED(FuseTypedWrite);
384+
}
380385
// ***** Below go accessor methods for testing WA data from WA_TABLE *****
381386

382387
bool WaDoNotPushConstantsForAllPulledGSTopologies() const

0 commit comments

Comments
 (0)