[Mesa-dev] [PATCH 33/34] glsl: Implement rules for geometry shader input sizes.

Paul Berry stereotype441 at gmail.com
Thu Aug 1 08:48:04 PDT 2013


On 31 July 2013 18:05, Ian Romanick <idr at freedesktop.org> wrote:

> On 07/28/2013 11:03 PM, Paul Berry wrote:
>
>> Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec
>> contains some tricky rules for how the sizes of geometry shader input
>> arrays are related to the input layout specification.  In essence,
>> those rules boil down to the following:
>>
>> - If an input array declaration does not specify a size, and it
>>    follows an input layout declaration, it is sized according to the
>>    input layout.
>>
>> - If an input layout declaration follows an input array declaration
>>    that didn't specify a size, the input array declaration is given a
>>    size at the time the input layout declaration appears.
>>
>> - All input layout declarations and input array sizes must ultimately
>>    match.  Inconsistencies are reported as soon as they are detected,
>>    at compile time if the inconsistency is within one compilation unit,
>>    otherwise at link time.
>>
>
> Some later GLSL specs "clarify" that some errors are generated at
> different times.  I use scare quotes because, in reality, the spec was just
> changed to match shipping implementations.  It would be worth checking this
> last statement against the 4.30 or 4.40 spec.


Good point.  I checked the GLSL 4.40 spec and it agrees with GLSL 1.50
about this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130801/5bc72cec/attachment.html>


More information about the mesa-dev mailing list