Skip to content

Commit 61f6fde

Browse files
elvinw-inteligcbot
authored andcommitted
Make regkey OverrideCsTileLayout Integer
there're 3 enum associated with the regkey so using bool is incorrect
1 parent 70aa3f3 commit 61f6fde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

IGC/Compiler/CISACodeGen/CSWalkOrder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void IGC::overrideWalkOrderKeysInPass(bool is_pow2_x, bool is_pow2_y, bool is_po
188188
}
189189

190190
if (IGC_IS_FLAG_ENABLED(OverrideCsTileLayoutEnable)) {
191-
threadIDLayout = (ThreadIDLayout)IGC_IS_FLAG_ENABLED(OverrideCsTileLayout);
191+
threadIDLayout = (ThreadIDLayout)IGC_GET_FLAG_VALUE(OverrideCsTileLayout);
192192
}
193193

194194
const IGC::TriboolFlag overrideHWGenerateLID = static_cast<TriboolFlag>(IGC_GET_FLAG_VALUE(OverrideHWGenerateLID));

IGC/common/igc_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ DECLARE_IGC_REGKEY(DWORD, EnableScalarPipe, 0,
16701670
DECLARE_IGC_REGKEY(bool, OverrideCsWalkOrderEnable, false, "Enable overriding compute walker walk order", true)
16711671
DECLARE_IGC_REGKEY(int, OverrideCsWalkOrder, 0, "Override compute walker walk order", true)
16721672
DECLARE_IGC_REGKEY(bool, OverrideCsTileLayoutEnable, false, "Enable overriding compute walker tile layout", true)
1673-
DECLARE_IGC_REGKEY(bool, OverrideCsTileLayout, 0, "Override compute walker tile layout. False is linear. True is TileY",
1673+
DECLARE_IGC_REGKEY(int, OverrideCsTileLayout, 0, "Override compute walker tile layout enum class ThreadIDLayout",
16741674
true)
16751675
DECLARE_IGC_REGKEY_ENUM(OverrideHWGenerateLID, -1,
16761676
"Override HW Generate Local ID setting"

0 commit comments

Comments
 (0)