[Bug 71741] GL_ARB_ES3_compatibility and std140 arrays

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 18 08:11:29 PST 2013


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

Ian Romanick <idr at freedesktop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Ian Romanick <idr at freedesktop.org> ---
I am able to reproduce this on current 10.0 branch.  It appears that the float
array is being packed as a vec4 array.  I believe this is actually correct.  By
rule #4 of the std140 packing:

      (4) If the member is an array of scalars or vectors, the base alignment
          and array stride are set to match the base alignment of a single
          array element, according to rules (1), (2), and (3), and rounded up
          to the base alignment of a vec4. The array may have padding at the
          end; the base offset of the member following the array is rounded up
          to the next multiple of the base alignment.

The important bit is "rounded up to the base alignment of a vec4."

Have you tried this on other OpenGL implementations?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20131118/29db8e92/attachment.html>


More information about the intel-3d-bugs mailing list