Fix some of the reduce-* tests for 32 and 64-wide targets

This commit is contained in:
Matt Pharr
2012-05-25 14:47:06 -07:00
parent 21c43737fe
commit 51ade48e3d
10 changed files with 30 additions and 50 deletions

View File

@@ -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;
}