The patch looks good but it&#39;s r5xx-only. I&#39;ll commit this when an r3xx version is implemented too.<br><br>-Marek<br><br><div class="gmail_quote">On Mon, May 24, 2010 at 6:00 PM, Gianluca Anzolin <span dir="ltr">&lt;<a href="mailto:gianluca@sottospazio.it">gianluca@sottospazio.it</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
Yesterday I was trying to run an example taken from chapter 6 of the book OpenGl<br>
Shading Language with the new gallium driver (I have a RV570 graphic card), but<br>
I got this error when compiling the vertex shader: Unknown opcode 35.<br>
<br>
Digging in the source code I found that the opcode 35 is for the &gt; operator<br>
between two vectors (RC_OPCODE_SGT). It&#39;s related to the following vertex<br>
shader code:<br>
<br>
    if (diffuse &gt; 0.0)<br>
    {<br>
        spec = max(dot(reflectVec, viewVec), 0.0);<br>
        spec = pow(spec, 16.0);<br>
    }<br>
<br>
<br>
<br>
When I changed the comparison to &quot;&gt;=&quot; the problem disappeared. Infact there is<br>
no switch case for RC_OPCODE_SGT in the file r3xx_vertprog.c. I added that case<br>
to the switch statement (see the patch attached) and I got it working even with<br>
the &quot;&gt;&quot; operator.<br>
<br>
I hope the patch is correct, if there is a better fix I&#39;d really like to know.<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Gianluca<br>
<br>
</font><br>_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br>