Fix errors in tests for scalar target.

Issue #167.
This commit is contained in:
Matt Pharr
2012-01-31 11:57:12 -08:00
parent ea027a95a8
commit dac091552d
2 changed files with 3 additions and 3 deletions

View File

@@ -11,5 +11,5 @@ export void f_f(uniform float RET[], uniform float aFOO[]) {
} }
export void result(uniform float RET[]) { export void result(uniform float RET[]) {
RET[programIndex] = (programCount == 1) ? 1 : 3; RET[programIndex] = (programCount == 1) ? 2 : 3;
} }

View File

@@ -5,11 +5,11 @@ uniform int32 s = 0xff;
export void f_f(uniform float RET[], uniform float aFOO[]) { export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex]; float a = aFOO[programIndex];
int32 bits = 0xfffffff0; int32 bits = 0xfff0;
float b = atomic_xor_global(&s, bits); float b = atomic_xor_global(&s, bits);
RET[programIndex] = s; RET[programIndex] = s;
} }
export void result(uniform float RET[]) { export void result(uniform float RET[]) {
RET[programIndex] = 0xff; RET[programIndex] = (programCount & 1) ? 0xff0f : 0xff;
} }