Skip to content

Commit 705de1d

Browse files
Quetzonarchigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: ecbd285
Updated implementation of sub_group_ballot_* Updated the implementation of sub_group_ballot_* function to use max subgroup size instead of current subgroup size.
1 parent 6ca7247 commit 705de1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/BiFModule/Implementation/group.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ uint SPIRV_OVERLOADABLE SPIRV_BUILTIN(GroupNonUniformBallotBitCount, _i32_i32_v4
20732073
uint result = 0;
20742074
if (Execution == Subgroup)
20752075
{
2076-
uint sgsize = SPIRV_BUILTIN_NO_OP(BuiltInSubgroupMaxSize, , )();
2076+
uint sgsize = SPIRV_BUILTIN_NO_OP(BuiltInSubgroupSize, , )();
20772077
uint sglid = SPIRV_BUILTIN_NO_OP(BuiltInSubgroupLocalInvocationId, , )();
20782078
uint consideredBits = Value.x << (32 - sgsize);
20792079
// intended fallthrough in the switch statement
@@ -2104,7 +2104,7 @@ uint SPIRV_OVERLOADABLE SPIRV_BUILTIN(GroupNonUniformBallotFindMSB, _i32_v4i32,
21042104
{
21052105
if (Execution == Subgroup)
21062106
{
2107-
uint sgsize = SPIRV_BUILTIN_NO_OP(BuiltInSubgroupMaxSize, , )();
2107+
uint sgsize = SPIRV_BUILTIN_NO_OP(BuiltInSubgroupSize, , )();
21082108
uint consideredBits = Value.x << (32 - sgsize);
21092109
return (sgsize - 1) - SPIRV_OCL_BUILTIN(clz, _i32, )((int)consideredBits);
21102110
}

0 commit comments

Comments
 (0)