[Mesa-dev] [PATCH 10/24] glsl: Implement parser support for atomic counters.

Francisco Jerez currojerez at riseup.net
Wed Sep 18 16:13:20 PDT 2013


Ian Romanick <idr at freedesktop.org> writes:

>[...]
>>>> 
>>>> +         if (field_type->atomic_size()) { +            YYLTYPE
>>>> loc = decl_list->get_location(); +
>>>> _mesa_glsl_error(&loc, state, "atomic counter in structure or
>>>> " +                             "uniform block"); +         } 
>>>> +
>>>> 
>>>> Are you sure this is not allowed?  I can't find any spec text
>>>> to back this up.  All I found was this text from
>>>> ARB_shader_atomic_counters:
>>> 
>>> Yeah, this is definitely wrong.  See the text I quoted in reply
>>> to patch 8.[...]
>>> 
>> Please read my answer to Paul's post.  It's not clear how atomic 
>> counters declared within a structure would get their binding points
>> and offsets assigned: binding and offset qualifiers are disallowed
>> within structs, and using a single layout() qualifier for the whole
>> uniform struct declaration isn't satisfactory either.  I think we
>> should disallow them for now, the spec is just too inconsistent...
>
> Yes... I see the problem now.  I've submitted a spec bug.  Until that
> bug gets resolved, let's continue with the assumption that atomic_uint
> should not be allowed in structs.
>
Thank you for doing that, do you have a link to the report?

>> Thanks.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130918/872f2523/attachment.pgp>


More information about the mesa-dev mailing list