Fix more tests for 32 and 64-wide execution.

This commit is contained in:
Matt Pharr
2012-05-30 13:06:07 -07:00
parent 8fd9b84a80
commit fe8b109ca5
6 changed files with 11 additions and 9 deletions

View File

@@ -8,12 +8,13 @@ struct Foo {
};
export void f_fi(uniform float RET[], uniform float a[], uniform int bFOO[]) {
int b = bFOO[programIndex];
uniform struct Foo myFoo[17];
uniform struct Foo myFoo[256];
uniform int i;
for (i = 0; i < 17; ++i) {
for (i = 0; i < 256; ++i) {
myFoo[i].x = i;
myFoo[i].f = 17+2*i;
}
assert(b/2 < 256);
RET[programIndex] = myFoo[b/2].f;
}