<div dir="ltr">On 16 October 2013 13:50, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/16/2013 01:46 PM, Ian Romanick wrote:<br>
> On 10/16/2013 07:43 AM, Paul Berry wrote:<br>
>> On 16 October 2013 00:26, Jordan Justen <<a href="mailto:jljusten@gmail.com">jljusten@gmail.com</a>> wrote:<br>
>>> Also, perhaps we should log a spec bug to ask the spec to clarify this?<br>
>><br>
>> IMHO, the intent is already clear from the fact that all the<br>
>> redeclaration examples in the spec include the in/out qualifier.  The<br>
>> fact that the NVIDIA compiler sometimes misbehaves if in/out is absent<br>
>> seems like adequate confirmation to me.  Spec bugs frequently take weeks<br>
>> or months to get resolved, so I guess I'm having trouble convincing<br>
>> myself that it's worth it in this case.<br>
>><br>
>> Anyone else want to weigh in with an opinion on this?  Idr?<br>
><br>
> I think the spec is already clear, and NVIDIA's implementation is just<br>
> buggy.<br>
<br>
</div></div>Arg... but let me be clear.  It is already explicitly an error to do:<br>
<br>
in vec4 foo;<br>
vec4 foo;<br>
<br>
or<br>
<br>
vec4 foo;<br>
centroid in vec4 foo;<br>
<br>
or<br>
<br>
in vec4 foo;<br>
centroid in vec4 foo;  // this one is okay.<br></blockquote><div><br></div><div>Actually my reading of GLSL 1.50 is that only built-ins can be redeclared for purposes of changing their interpolation qualifiers.  So I think this is illegal too.  Does that change your opinion?<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
vec4 foo;              // this one is not.<br>
<br>
There is no reason to believe built-in variables should have a different<br>
set of rules.  Right?<br>
<br>
</blockquote></div><br></div><br></div>