Move two tests that are currently failing into failing_tests/
This commit is contained in:
23
failing_tests/masked-scatter-vector.ispc
Normal file
23
failing_tests/masked-scatter-vector.ispc
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
typedef int<3> int3;
|
||||
|
||||
export void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
|
||||
float a = aa[programIndex];
|
||||
uniform int3 array[32];
|
||||
for (uniform int i = 0; i < 6*b + 2; ++i) {
|
||||
for (uniform int j = 0; j < 3; ++j)
|
||||
array[i][j] = i+100*j;
|
||||
}
|
||||
|
||||
varying int3 vv = array[a];
|
||||
++vv.y;
|
||||
array[a] = vv;
|
||||
print("fin %\n", array[programIndex].y);
|
||||
ret[programIndex] = array[programIndex].y;
|
||||
}
|
||||
|
||||
export void result(uniform float ret[]) {
|
||||
ret[programIndex] = 100+programIndex;
|
||||
}
|
||||
39
failing_tests/scatter-vector.ispc
Normal file
39
failing_tests/scatter-vector.ispc
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
struct Foo {
|
||||
float f;
|
||||
uniform int a;
|
||||
float y;
|
||||
};
|
||||
|
||||
extern void aa(reference Foo f);
|
||||
extern void bb(reference Foo f[]);
|
||||
|
||||
typedef float<3> float3;
|
||||
|
||||
void set(uniform float3 f[], int offset, float3 val) {
|
||||
f[offset] = val;
|
||||
}
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
float a = aFOO[programIndex];
|
||||
|
||||
uniform float3 foo[35];
|
||||
for (uniform int i = 0; i < 35; ++i) {
|
||||
foo[i].x = i;
|
||||
foo[i].y = -1;
|
||||
foo[i].z = 2*i;
|
||||
}
|
||||
|
||||
float3 bar = { programIndex, 2*programIndex, 3*programIndex };
|
||||
set(foo, a-1, bar);
|
||||
|
||||
RET[programIndex] = foo[programIndex].z;
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 3*programIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user