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@lists.freedesktop.org
          Reporter: m...@felix-potthast.de
        QA Contact: intel-3d-b...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to