Fix some of the reduce-* tests for 32 and 64-wide targets
This commit is contained in:
@@ -13,11 +13,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 4;
|
||||
else if (programCount == 8) x = 16;
|
||||
else if (programCount == 16) x = 64;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; i += 2)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,11 +12,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 10;
|
||||
else if (programCount == 8) x = 36;
|
||||
else if (programCount == 16) x = 136;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; ++i)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 4;
|
||||
else if (programCount == 8) x = 16;
|
||||
else if (programCount == 16) x = 64;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; i += 2)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,11 +12,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 10;
|
||||
else if (programCount == 8) x = 36;
|
||||
else if (programCount == 16) x = 136;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; ++i)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 4;
|
||||
else if (programCount == 8) x = 16;
|
||||
else if (programCount == 16) x = 64;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; i += 2)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 10;
|
||||
else if (programCount == 8) x = 36;
|
||||
else if (programCount == 16) x = 136;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; ++i)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 4;
|
||||
else if (programCount == 8) x = 16;
|
||||
else if (programCount == 16) x = 64;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; i += 2)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,11 +12,9 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 10;
|
||||
else if (programCount == 8) x = 36;
|
||||
else if (programCount == 16) x = 136;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; ++i)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,10 +13,8 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 4;
|
||||
else if (programCount == 8) x = 16;
|
||||
else if (programCount == 16) x = 64;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; i += 2)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
@@ -13,10 +13,8 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
uniform int x = -1234;
|
||||
if (programCount == 1) x = 1;
|
||||
else if (programCount == 4) x = 4;
|
||||
else if (programCount == 8) x = 16;
|
||||
else if (programCount == 16) x = 64;
|
||||
uniform int x = 0;
|
||||
for (uniform int i = 1; i <= programCount; i += 2)
|
||||
x += i;
|
||||
RET[programIndex] = x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user