<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - GLSL: vectorize optimization goes wrong on dot products"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75224#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - GLSL: vectorize optimization goes wrong on dot products"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75224">bug 75224</a>
              from <span class="vcard"><a class="email" href="mailto:aras@unity3d.com" title="Aras Pranckevicius <aras@unity3d.com>"> <span class="fn">Aras Pranckevicius</span></a>
</span></b>
        <pre>Locally I could fix this with:

/* Upon entering an ir_binop_dot, remove the current assignment from
 * further consideration. Dot product is "horizontal" instruction
 * that we can't vectorize.
 */
ir_visitor_status
ir_vectorize_visitor::visit_enter(ir_expression *ir)
{
   if (ir->operation == ir_binop_dot) {
      this->current_assignment = NULL;
      return visit_continue_with_parent;
   }
   return visit_continue;
}


But not sure if that's the correct approach.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>