Files
ispc/tests/gather-to-vload-neg-offset.ispc
Matt Pharr 1198520029 Improve gather->vector load optimization to detect <linear sequence>-<uniform> case.
Previously, we didn't handle subtraction ops when deciphering offsets in order to
try to change gathers t evictor loads.
2011-10-11 13:24:40 -07:00

14 lines
315 B
Plaintext

export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
float a = aFOO[programIndex];
int index = programIndex + 5;
RET[index-b] = a;
}
export void result(uniform float RET[]) {
RET[programIndex] = 1 + programIndex;
}