On 10 November 2011 15:47, Chad Versace <span dir="ltr"><<a href="mailto:chad.versace@linux.intel.com" target="_blank">chad.versace@linux.intel.com</a>></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>
> These tests verify that the following built-in shader input variables<br>
> are read-only:<br>
><br>
> For vertex shaders:<br>
> - gl_Color<br>
> - gl_SecondaryColor<br>
> - gl_Normal<br>
> - gl_Vertex<br>
> - gl_MultiTexCoord0<br>
> - gl_MultiTexCoord1<br>
> - gl_MultiTexCoord2<br>
> - gl_MultiTexCoord3<br>
> - gl_MultiTexCoord4<br>
> - gl_MultiTexCoord5<br>
> - gl_MultiTexCoord6<br>
> - gl_MultiTexCoord7<br>
> - gl_FogCoord<br>
> - gl_VertexID (a GLSL 1.30 feature)<br>
><br>
> For fragment shaders:<br>
> - gl_FragCoord<br>
> - gl_FrontFacing<br>
> - gl_ClipDistance (a GLSL 1.30 feature)<br>
> ---<br>
> .../storage-qualfiers/static-write-color.vert | 22 ++++++++++++++++++++<br>
> .../storage-qualfiers/static-write-fog-coord.vert | 22 ++++++++++++++++++++<br>
> .../storage-qualfiers/static-write-frag-coord.frag | 14 ++++++++++++<br>
> .../static-write-front-facing.frag | 14 ++++++++++++<br>
> .../static-write-multitexcoord0.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord1.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord2.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord3.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord4.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord5.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord6.vert | 22 ++++++++++++++++++++<br>
> .../static-write-multitexcoord7.vert | 22 ++++++++++++++++++++<br>
> .../storage-qualfiers/static-write-normal.vert | 22 ++++++++++++++++++++<br>
> .../static-write-secondary-color.vert | 22 ++++++++++++++++++++<br>
> .../storage-qualfiers/static-write-vertex.vert | 22 ++++++++++++++++++++<br>
> .../static-write-clip-distance.frag | 20 ++++++++++++++++++<br>
> .../storage-qualifiers/static-write-in-direct.vert | 18 ++++++++++++++++<br>
> .../static-write-in-indirect.vert | 21 +++++++++++++++++++<br>
> .../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're probably thinking of vertex shader outputs. I'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'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'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're right of course. That will teach me to write code during a meeting.<br><br>I'll send out a pair of patches to take the place of this one.<br>
</div></div>