[Mesa-dev] [PATCH] glsl: Add a citation for uniform precision matching.

Ian Romanick idr at freedesktop.org
Wed Sep 7 06:56:26 UTC 2016


On 09/06/2016 03:24 PM, Kenneth Graunke wrote:
> On Tuesday, September 6, 2016 1:04:43 PM PDT Eric Anholt wrote:
>> Kenneth Graunke <kenneth at whitecape.org> writes:
>>
>>> Ian added this check in commit 259fc505454ea6a67aeacf6cdebf1398d9947759.
>>> While reviewing the rules, I found a citation which spells this out
>>> clearly, so I figured I'd send a patch to add it as a comment.
>>>
>>> Cc: idr at freedesktop.org
>>> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
>>
>> Reviewed-by: Eric Anholt <eric at anholt.net>
>>
>> I was wondering about this change, because glmark2 is failing to compile
>> its terrain shaders now.

Out of curiosity... is the uniform used in all the stages?

> Really?  GLBenchmark 2.7 also fails to compile:
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=97532
> 
> I'm beginning to doubt whether any other vendor implements this part of
> the spec, or if they have some variation of it.

I added this specifically for a dEQP test.  Presumably people are
passing that.

dEQP-GLES31.functional.shaders.linkage.geometry.uniform.rules.type_mismatch_1.

I wonder if this is only enforced in GLSL ES 3.2 shaders?  I'll do some
spec archaeology to see if the language changed at all over the years.  Ugh.

> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160906/3cdceedc/attachment.sig>


More information about the mesa-dev mailing list