[Mesa-dev] [PATCH 3/9] glsl: Convert mix() to use a new ir_triop_lrp opcode.
aras at unity3d.com
Wed Feb 20 02:39:05 PST 2013
> Why did glsl implement this really as x * (1 - a) + y * a?
> The usual way for lerp would be (y - x) * a + x, i.e. two ops for most
> gpus (sub+mad, or sub+mul+add). But I'm wondering if that sacrifices
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mesa-dev