[Mesa-dev] [PATCH] glsl/linker: Allow mixing of desktop GLSL versions.

Eric Anholt eric at anholt.net
Sat Oct 19 01:04:37 CEST 2013


Paul Berry <stereotype441 at gmail.com> writes:

> Previously, Mesa followed the linkage rules outlined in the GLSL
> 1.20-1.40 specs, which (collectively) said that GLSL versions 1.10 and
> 1.20 could be linked together, but no other versions could be linked.
>
> In GLSL 4.30, the linkage rules were relaxed so that any two desktop
> GLSL versions can be linked together.  This change was made because it
> reflected the behaviour of nearly all existing implementations (see
> Khronos bug 8463).  Mesa was one of the few (perhaps the only)
> exceptions to prohibit cross-linking of some GLSL versions.
>
> Since the GLSL linkage rules were deliberately relaxed in order to
> match the behaviour of existing implementations, it seems appropriate
> to relax the rules in Mesa too (even though Mesa doesn't support GLSL
> 4.30 yet).
>
> Note that linking ES and desktop shaders is still prohibited, as is
> linking ES shaders having different GLSL versions.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131018/e8603705/attachment.pgp>


More information about the mesa-dev mailing list