On 10 November 2011 15:47, Chad Versace <span dir="ltr">&lt;<a href="mailto:chad.versace@linux.intel.com" target="_blank">chad.versace@linux.intel.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>On 11/10/2011 11:38 AM, Paul Berry wrote:<br>
&gt; These tests verify that the following built-in shader input variables<br>
&gt; are read-only:<br>
&gt;<br>
&gt; For vertex shaders:<br>
&gt; - gl_Color<br>
&gt; - gl_SecondaryColor<br>
&gt; - gl_Normal<br>
&gt; - gl_Vertex<br>
&gt; - gl_MultiTexCoord0<br>
&gt; - gl_MultiTexCoord1<br>
&gt; - gl_MultiTexCoord2<br>
&gt; - gl_MultiTexCoord3<br>
&gt; - gl_MultiTexCoord4<br>
&gt; - gl_MultiTexCoord5<br>
&gt; - gl_MultiTexCoord6<br>
&gt; - gl_MultiTexCoord7<br>
&gt; - gl_FogCoord<br>
&gt; - gl_VertexID (a GLSL 1.30 feature)<br>
&gt;<br>
&gt; For fragment shaders:<br>
&gt; - gl_FragCoord<br>
&gt; - gl_FrontFacing<br>
&gt; - gl_ClipDistance (a GLSL 1.30 feature)<br>
&gt; ---<br>
&gt;  .../storage-qualfiers/static-write-color.vert      |   22 ++++++++++++++++++++<br>
&gt;  .../storage-qualfiers/static-write-fog-coord.vert  |   22 ++++++++++++++++++++<br>
&gt;  .../storage-qualfiers/static-write-frag-coord.frag |   14 ++++++++++++<br>
&gt;  .../static-write-front-facing.frag                 |   14 ++++++++++++<br>
&gt;  .../static-write-multitexcoord0.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord1.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord2.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord3.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord4.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord5.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord6.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-multitexcoord7.vert               |   22 ++++++++++++++++++++<br>
&gt;  .../storage-qualfiers/static-write-normal.vert     |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-secondary-color.vert              |   22 ++++++++++++++++++++<br>
&gt;  .../storage-qualfiers/static-write-vertex.vert     |   22 ++++++++++++++++++++<br>
&gt;  .../static-write-clip-distance.frag                |   20 ++++++++++++++++++<br>
&gt;  .../storage-qualifiers/static-write-in-direct.vert |   18 ++++++++++++++++<br>
&gt;  .../static-write-in-indirect.vert                  |   21 +++++++++++++++++++<br>
&gt;  .../storage-qualifiers/static-write-vertex-id.vert |   20 ++++++++++++++++++<br>
<br>
</div></div>All the tests look good, but I have two comments.<br>
<br>
Along with gl_Color and gl_SecondaryColor, we should test gl_BackColor and gl_BackSecondaryColor too.<br></blockquote><div><br>You&#39;re probably thinking of vertex shader outputs.  I&#39;m testing vertex shader inputs, and for vertex shader inputs only gl_Color and gl_SecondaryColor exist.  (I know, weird, huh?)<br>

<br>However, your comment reminds me that I left out some fragment shader inputs: gl_Color, gl_SecondaryColor, gl_TexCoord, gl_FogFragCoord, and gl_PointCoord.  I&#39;ll add those.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


<br>
Tests static-write-in-indirect and static-write-in-direct fall outside of the commit&#39;s subject. The commit<br>
message should be updated to mention them or they should be placed in a separate patch.<br></blockquote><div><br>You&#39;re right of course.  That will teach me to write code during a meeting.<br><br>I&#39;ll send out a pair of patches to take the place of this one.<br>

</div></div>