Fix various tests/[frs]* files to be correct with 32 and 64-wide targets.

Still todo: tests/c*, tests/test-*
This commit is contained in:
Matt Pharr
2012-05-30 10:31:12 -07:00
parent d86653668e
commit 5cb53f52c3
45 changed files with 97 additions and 101 deletions

View File

@@ -12,9 +12,8 @@ export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
float a = aFOO[programIndex];
soa<8> Foo * uniform pts = uniform new soa<8> Foo[4];
//CO uniform Foo pts[32];
foreach (i = 0 ... 32) {
soa<8> Foo * uniform pts = uniform new soa<8> Foo[10];
foreach (i = 0 ... 80) {
pts[i].x = b*i;
pts[i].z = -b*i;
for (uniform int j = 0; j < 3; ++j) {
@@ -27,6 +26,7 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
}
}
assert(programIndex < 80);
RET[programIndex] = pts[programIndex].pts[programIndex % 3][programIndex % 4].z;
}