[Mesa-dev] [Bug 29186] New: [glsl2] fail to override built-in functions

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 20 18:49:50 PDT 2010


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

           Summary: [glsl2] fail to override built-in functions
           Product: Mesa
           Version: git
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: gordon.jin at intel.com


GLSL spec says: "User code can replace built-in functions with their own if
they choose, by simply re-declaring and defining the same name and argument
list."

But piglit/tests/glslparsertest/shaders/CorrectBuiltInOveride.frag fails when
defining 'radians' (a built-in function) with below failure: 
error: function `radians' redefined

This happens with mesa glsl2 branch, while passes with master branch.

It seems the glsl2 ir reader doesn't consider built-in functions when
processing redefining error.

-- 
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