Skip to content

Commit babf96c

Browse files
weiyu-chensys_zuul
authored andcommitted
Minor refactor to avoid hard-coding execution size.
Change-Id: I8b65512a930bb5145885afda7ed7663143183ad2
1 parent 7deb262 commit babf96c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

visa/GraphColor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ void BankConflictPass::setupBankConflictsForBB(G4_BB* bb,
10071007
}
10081008
else
10091009
{
1010-
setupBankConflictsforTwoGRFs(inst);
1010+
setupBankConflictsforTwoGRFs(inst);
10111011
}
10121012

10131013
}

visa/HWCaps.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@
448448
getPlatform() == GENX_ICLLP;
449449
}
450450

451+
bool isGen12LP() const
452+
{
453+
return getPlatform() == GENX_TGLLP;
454+
}
455+
451456
bool no64bitType() const
452457
{
453458
return getPlatform() == GENX_ICLLP || isGen12LP();
@@ -590,11 +595,6 @@
590595
return false;
591596
}
592597

593-
bool isGen12LP() const
594-
{
595-
return getPlatform() == GENX_TGLLP;
596-
}
597-
598598
bool predCtrlHasWidth() const
599599
{
600600
return true;

visa/TranslationInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3086,7 +3086,7 @@ int IR_Builder::translateVISAMediaLoadInst(
30863086

30873087
unsigned short remained_ele = obj_size / G4_Type_Table[original_dst->getType()].byteSize;
30883088
// max execution size is 32
3089-
unsigned char curr_exec_size = 16;
3089+
unsigned char curr_exec_size = getNativeExecSize() * 2;
30903090
unsigned char curr_offset = 0;
30913091

30923092
G4_Type dstType = original_dst->getType();

0 commit comments

Comments
 (0)