On Wed, Sep 4, 2013 at 3:22 PM, Kenneth Graunke <kenn...@whitecape.org> wrote: > dotlike() uses ir_binop_mul for scalars, and ir_binop_dot for vectors. > > When generating built-in functions, we often want to use regular > multiply for scalar signatures, and dot() for vector signatures. > ir_binop_dot only works on vectors, so we have to switch opcodes, > even if the code is otherwise identical. dotlike() makes this easy.
Why not just make dot() do this? _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev