[Mesa-dev] [Bug 31985] [GLSL 1.20] initialized uniform array considered as "unsized"

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 7 16:38:08 PST 2010


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

Ian Romanick <idr at freedesktop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|git                         |7.9
             Status|NEW                         |ASSIGNED
          Component|Mesa core                   |glsl-compiler
         AssignedTo|mesa-dev at lists.freedesktop. |idr at freedesktop.org
                   |org                         |

--- Comment #2 from Ian Romanick <idr at freedesktop.org> 2010-12-07 16:38:06 PST ---
The piglit test array-compare-04.vert (bug #32035) also hits this issue.  Fixed
by:

commit 7bdaa2c5ad7ef02c1c97367839962ec03361c528
Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Tue Dec 7 16:27:22 2010 -0800

    glsl: Inherrit type of declared variable from initializer

    Types of declared variables and their initializer must match excatly
    except for unsized arrays.  Previously the type inherritance for
    unsized arrays happened implicitly in the emitted assignment.
    However, this assignment is never emitted for uniforms.  Now that type
    is explicitly copied unconditionally.

    Fixes piglit test array-compare-04.vert (bugzilla #32035) and
    glsl-array-uniform-length (bugzilla #31985).

    NOTE: This is a candidate for the 7.9 branch.

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