Summary: |
GLSL version >=1.30 built-in functions present in version <1.30 |
Product: |
Mesa
|
Reporter: |
Felix Potthast <mail> |
Component: |
glsl-compiler | Assignee: |
mesa-dev |
Status: |
RESOLVED
MOVED
|
QA Contact: |
Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: |
normal
|
|
|
Priority: |
medium
|
|
|
Version: |
18.2 | |
|
Hardware: |
Other | |
|
OS: |
All | |
|
Whiteboard: |
|
i915 platform:
|
|
i915 features:
|
|
Attachments: |
Test shader
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 141854 [details] 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