Skip to content

Commit 4f7f3ff

Browse files
committed
Fix hlsl
1 parent fb87fc1 commit 4f7f3ff

161 files changed

Lines changed: 477 additions & 368 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_0.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
if (WaveIsFirstLane()) {
1818
for (int loopIdx0 = 0;
1919
loopIdx0 < InputA[4];

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_1.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
{
1818
int loopIdx0 = 0;
1919
do {

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_2.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
if (testBit(uint4(0x4be9eec2, 0x80c7a6f2, 0xe252fe7f, 0xf1ddec4d), WaveGetLaneIndex())) {
1818
OutputB[(outLoc++)*invocationStride + gIndex] = WaveActiveBallot(true);
1919
if (WaveIsFirstLane()) {

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_3.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
for (int loopIdx0 = 0;
1818
loopIdx0 < InputA[5];
1919
loopIdx0++) {

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_4.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
OutputB[(outLoc++)*invocationStride + gIndex].x = 0x10000;
1818
OutputB[(outLoc++)*invocationStride + gIndex] = WaveActiveBallot(true);
1919
if (testBit(uint4(0x7c271cdc, 0xcb18f481, 0x6ec4196a, 0x550db835), WaveGetLaneIndex())) {

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_5.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
OutputB[(outLoc++)*invocationStride + gIndex].x = 0x10000;
1818
switch (WaveGetLaneIndex() & 3) {
1919
case 0:

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_6.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
OutputB[(outLoc++)*invocationStride + gIndex] = WaveActiveBallot(true);
1818
if (WaveIsFirstLane()) {
1919
OutputB[(outLoc++)*invocationStride + gIndex].x = 0x10002;

test/Feature/MaximalReconvergence/cts/tests/16/test_2_16_7_13_7.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
if (InputA[0] == 0) {
1818
switch (WaveGetLaneIndex() & 3) {
1919
case 0:

test/Feature/MaximalReconvergence/cts/tests/16/test_3_16_7_13_0.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
if (WaveIsFirstLane()) {
1818
for (int loopIdx0 = 0;
1919
loopIdx0 < InputA[4];

test/Feature/MaximalReconvergence/cts/tests/16/test_3_16_7_13_1.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ StructuredBuffer<uint> InputA : register(t0);
77
RWStructuredBuffer<uint4> OutputB : register(u1);
88

99
bool testBit(uint4 mask, uint bit) { return ((mask[bit / 32] >> (bit % 32)) & 1) != 0; }
10+
static int outLoc = 0;
11+
static int invocationStride = 91;
1012

1113

1214
[numthreads(THREADS_X, THREADS_Y, 1)]
1315
void main(uint gIndex : SV_GroupIndex)
1416
{
15-
int outLoc = 0;
16-
int invocationStride = 91;
1717
{
1818
int loopIdx0 = 0;
1919
do {

0 commit comments

Comments
 (0)