[Mesa-dev] [Bug 108160] GLSL version >=1.30 built-in functions present in version <1.30

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 3 12:22:33 UTC 2018


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

            Bug ID: 108160
           Summary: GLSL version >=1.30 built-in functions present in
                    version <1.30
           Product: Mesa
           Version: 18.2
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glsl-compiler
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: mail at felix-potthast.de
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Created attachment 141854
  --> https://bugs.freedesktop.org/attachment.cgi?id=141854&action=edit
Test shader

In GLSL versions 1.00 ES, 1.10 and 1.20, Mesa includes some built-in functions
which shouldn't be present in that version, namely:

genIType abs(genIType x)
genIType sign(genIType x)
genIType min(genIType x, genIType y)
genIType min(genIType x, int y)
genIType max(genIType x, genIType y)
genIType max(genIType x, int y)
genIType clamp(genIType x, genIType minVal, genIType maxVal)
genIType clamp(genIType x, int minVal, int maxVal)
genType trunc(genType x)
genType round(genType x)
genType roundEven(genType x)
genType modf(genType x, out genType i)

I attached a shader that defines all these functions.
It compiles with glslang for every GLSL version,
but not with Mesa for GLSL version <=1.20

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181003/b1f544e9/attachment.html>


More information about the mesa-dev mailing list