[Mesa-dev] [PATCH v2 01/14] glsl: Add new atomic_uint built-in GLSL type.

Francisco Jerez currojerez at riseup.net
Wed Oct 2 10:29:06 PDT 2013


Kenneth Graunke <kenneth at whitecape.org> writes:

> On 10/01/2013 07:15 PM, Francisco Jerez wrote:
>[...]
>> @@ -441,6 +442,27 @@ struct glsl_type {
>>     }
>>  
>>     /**
>> +    * Return the amount of atomic counter storage required for a type.
>> +    */
>> +   unsigned atomic_size() const
>> +   {
>> +      if (base_type == GLSL_TYPE_ATOMIC_UINT)
>> +         return ATOMIC_COUNTER_SIZE;
>
> This doesn't compile, since ATOMIC_COUNTER_SIZE is not defined.
>
Ken, this patch is not expected to compile alone without a bunch of
patches from my previous series that I didn't resend to avoid flooding
the list.  You can find a working branch with all the necessary
dependencies here:

http://cgit.freedesktop.org/~currojerez/mesa/log/?h=atomic-counters

Thanks.

>> +      else if (is_array())
>> +         return length * element_type()->atomic_size();
>> +      else
>> +         return 0;
>> +   }
-------------- 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/20131002/25674352/attachment-0001.pgp>


More information about the mesa-dev mailing list