Update run_tests and examples makefile for scalar target.
Fixed a number of tests that didn't handle the programCount == 1 case correctly.
This commit is contained in:
@@ -3,7 +3,7 @@ export uniform int width() { return programCount; }
|
||||
|
||||
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
int8 a = aFOO[programIndex];
|
||||
int8 br = broadcast(a, (uniform int)b-2);
|
||||
int8 br = (programCount == 1) ? 4 : broadcast(a, (uniform int)b-2);
|
||||
RET[programIndex] = br;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user