Glsl

This branch contains preliminary changes for discussion on supporting .vectorize(...) scheduling with .glsl(...).
Awesome, yes, we should switch to vectorize(c) as the default to avoid
unrolled texture loads of the same texel.

I will clean up the target check in the tests today and then we can merge
this branch.

Abe


On Tue, Aug 26, 2014 at 10:47 AM, Andrew Adams <notifications@github.com>
wrote:

> In src/Func.cpp:
>
> > @@ -1195,7 +1195,7 @@ Func &Func::glsl(Var x, Var y, Var c) {
> >      }
> >      user_assert(constant_bounds)
> >          << "The color channel for GLSL loops must have constant bounds, e.g., .bound(c, 0, 3).\n";
> > -    unroll(c);
>
> If vectorize is going to work for nearly everything, you can put a
> vectorize(c) here. An unroll(c) in user code would override it, but the
> vectorize would serve as a reasonable default.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/halide/Halide/pull/430/files#r16729737>.
>