[Mesa-dev] [Bug 29793] New: [glsl2]piglit glslparsertest_glsl2_struct-05.vert and glslparsertest_glsl2_redeclaration-02.vert fail

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 25 01:53:14 PDT 2010


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

           Summary: [glsl2]piglit glslparsertest_glsl2_struct-05.vert and
                    glslparsertest_glsl2_redeclaration-02.vert fail
           Product: Mesa
           Version: unspecified
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: xunx.fang at intel.com
                CC: kenneth at whitecape.org


System Environment:
--------------------------
Arch    x86_64
Platform    piketon
Libdrm:         (master)2.4.21-16-gb61e81a191d3a5c269c5f7c40199aebc9ebc034c
Mesa:           (master)c8b26c63fdad84d311748a24972146b6a371ab31
Xserver:                (master)xorg-server-1.9.0
Xf86_video_intel:   (master)2.12.0-73-g104cd0554bde1d109a54db7a93700d5edfabd914
Kernel: (for-linus)76be97c1fc945db08aae1f1b746012662d643e97


Bug detailed description:
-------------------------
glslparsertest_glsl2_struct-05.vert and
glslparsertest_glsl2_redeclaration-02.vert fail after update following piglit
commit.

commit 51e07b4ed94084b875e18d34a86a4977d03fa878
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Aug 22 02:37:18 2010 -0700

    Add more redeclaration tests; fix redeclaration-02 and struct-05.

    In 1.10, variables and functions have separate name spaces, so both can
    be declared in the same scope, and variables do not hide functions.
    This means that redeclaration-02.vert should pass, not fail.  However,
    structures conflict with both variables and functions, so struct-05.vert
    should fail.

    In 1.20, functions, types, and variables all share the same namespace.
    Thus, declaring any two in the same scope is an error (aside from
    function overloading).  Also, declaring a name hides declarations of
    _any_ kind in an outer scope.

    Issues 22-28 in the GLSL 1.20 specification shed a lot of light on
    the scoping rules (though it's still not 100% clear).

    Also, according to the 1.20 spec, built-ins live in a special scope
    beyond a shader's global scope.


Reproduce steps:
----------------
1.xinit& 
2.glslparsertest struct-05.vert fail 1.10 
  glslparsertest redeclaration-02.vert pass 1.10

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