[Bug 74092] New: way to force glsl compiler to use specific glsl version? (e.g. for shaders with no #version)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 26 10:49:39 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=74092

          Priority: medium
            Bug ID: 74092
          Assignee: idr at freedesktop.org
           Summary: way to force glsl compiler to use specific glsl
                    version? (e.g. for shaders with no #version)
        QA Contact: intel-3d-bugs at lists.freedesktop.org
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: haagch.christoph at googlemail.com
          Hardware: All
            Status: NEW
           Version: git
         Component: glsl-compiler
           Product: Mesa

Unfortunately some developers still don't seem to read the specifications and
write code that should not work.

For example if no #version is set in shaders, according to spec glsl version
1.10 is assumed. I would like a way to override that behavior.

There are already two variables related to that:
force_glsl_extensions_warn
MESA_GLSL_VERSION_OVERRIDE
but as far as I am aware the first doesn't help with syntax changes like arrays
as out or inout parameters and the second does apparently not influence what
the compiler will assume when no #version is set.

An example of a shader that can not be compiled with
force_glsl_extensions_warn=true MESA_GLSL_VERSION_OVERRIDE=130 would be this
one:

void a(inout vec4 b[1]) {}


Some time ago this was on the mailing list, but rejected because for several
reason that was the wrong place and way to do it:
http://lists.freedesktop.org/archives/mesa-dev/2012-August/026022.html

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140126/4dac2271/attachment.html>


More information about the intel-3d-bugs mailing list