On Fri, Apr 25, 2014 at 10:41 AM, Ilia Mirkin <imir...@alum.mit.edu> wrote: > This is enough to catch up to core mesa, with the exception of > uaddCarry/usubBorrow -- those will require some thought. I don't like the way > they were done in core mesa, so I may redo it differently. (Will start a > discussion on that topic after I've given it more thought.)
I'm not sure you have all of the context. GLSL IR is pure, meaning expressions have no side effects. uaddCarry and usubBorrow have side effects. Short of implementing an intrinsic system or something, which seems like massive overkill for these built-ins, you have to split them. Everyone I talked to about it at the office thought it was a really elegant solution, especially given that some other hardware implements instructions for the split pieces and that a peephole could recombine them for hardware that has a combined instruction. I didn't just implement the first thing that came to mind. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev