[Mesa-dev] [PATCH] docs: Expand ARB_gpu_shader5 to describe status of individual features

Chris Forbes chrisf at ijw.co.nz
Fri Apr 11 13:26:48 PDT 2014


OK, that simplifies things. Will fix.

On Sat, Apr 12, 2014 at 4:04 AM, Ian Romanick <idr at freedesktop.org> wrote:
> On 04/09/2014 01:11 AM, Chris Forbes wrote:
>> On Wed, Apr 9, 2014 at 7:23 AM, Ian Romanick <idr at freedesktop.org> wrote:
>>
>>> I believe UBO array indices are also dynamically uniform.
>>
>> I was surprised to find this when building the list too, but I believe
>> it's unrestricted.
>>
>> The GLSL 4.0 spec, 4.3.7 p43 (bottom of) says:
>>
>>     "Any integral expression can be used to index a uniform block array."
>
> Yeah... that was an oversight.  This was fixed in GLSL 4.40:
>
>     "A uniform or shader storage block array can only be indexed with a
>     dynamically uniform integral expression, otherwise results are
>     undefined."
>
>> The corresponding language for arrays of samplers is:
>>
>>     "...a dynamically uniform integral expression, otherwise results
>> are undefined."
>
>


More information about the mesa-dev mailing list