[Mesa-dev] [Bug 31673] New: GL_FRAGMENT_PRECISION_HIGH preprocessor macro undefined in GLSL ES

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 16 16:21:56 PST 2010


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

           Summary: GL_FRAGMENT_PRECISION_HIGH preprocessor macro
                    undefined in GLSL ES
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: kenneth at whitecape.org


According to the GLSL ES specification, section 4.5,

"The built-in macro GL_FRAGMENT_PRECISION_HIGH is defined to one on systems
supporting highp precision in the fragment language

   #define GL_FRAGMENT_PRECISION_HIGH 1

and is not defined on systems not supporting highp precision in the fragment
language.  When defined, this macro is available in both the vertex and
fragment languages.  The highp qualifier is an optional feature in the fragment
language and is not enabled by #extension."

glcpp currently does not define this macro for GLSL ES.  As far as I know, all
Mesa drivers currently support highp, so perhaps we should just define it
unconditionally.  However, I imagine this may not always be the case...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list