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:
@@ -11,9 +11,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].vec.x = b*i;
|
||||
pts[i].vec.y = -b*i;
|
||||
pts[i].vec.z = 2*b*i;
|
||||
@@ -21,6 +20,7 @@ export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
}
|
||||
|
||||
pts[programIndex+2].vec.z *= -1;
|
||||
assert(programIndex < 80);
|
||||
float<3> vl = pts[programIndex].vec;
|
||||
RET[programIndex] = vl.z;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user