Skip to content

Commit d542a75

Browse files
committed
Revert back to WaveActiveSum(1)
1 parent d86c230 commit d542a75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Feature/MaximalReconvergence/subgroup_uniform_control_flow.test

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#--- source.hlsl
22
RWStructuredBuffer<float> Out : register(u0);
33

4+
// https://www.khronos.org/blog/khronos-releases-maximal-reconvergence-and-quad-control-extensions-for-vulkan-and-spir-v
5+
// This tests that waves are correctly reconverging
6+
// after nested non-uniform branches.
7+
48
[numthreads(8,1,1)]
59
void main(uint3 TID : SV_GroupThreadID) {
6-
float maxActiveLaneCount = min(WaveGetLaneCount(), 8);
10+
float maxActiveLaneCount = min(WaveActiveSum(1), 8);
711
float div1 = 1.0/maxActiveLaneCount;
812
float div2 = 2.0/maxActiveLaneCount;
913
float div4 = 4.0/maxActiveLaneCount;

0 commit comments

Comments
 (0)