[Mesa-dev] [Bug 88885] Transform feedback uses incorrect interleaving if a previous draw did not write gl_Position

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jan 30 15:45:23 PST 2015


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

            Bug ID: 88885
           Summary: Transform feedback uses incorrect interleaving if a
                    previous draw did not write gl_Position
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: lankyleggy at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 112993
  --> https://bugs.freedesktop.org/attachment.cgi?id=112993&action=edit
Reproducer

After a draw with a shader program that has transform feedback varyings set,
and has a geometry shader that does not write to gl_Position, subsequent uses
of transform feedback with interleaved transform feedback attributes can out
write attributes in the wrong order, or with some missing. In every case of
this I've seen, the space used for each vertex's attributes was correct but the
offset within the vertex's data is wrong for some attributes.

The attached program demonstrates the problem. The second draw call writes
three transform feedback attributes. They are a float, a vec3, and another
float. When the transform feedback buffer is read back, the last component of
the vec3 has the value that should have been written to the second float, and
the second float ends up with 0. The output is in the correct order if the
first draw call is removed, if the first draw's geometry shader is changed to
write to gl_Position, or if the geometry shader for the second draw writes only
compile time constants to the transform feedback attributes.

I this bug is consistently reproducible for me. I am using Intel Haswell
graphics, x86_64 architecture, with Fedora 21 and mesa git
b930ef1ce8222156464cfd1e744c9598ace5efbb master branch. The Fedora 21 mesa
10.4.1 and 10.4.2 packages also reproduce the bug.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150130/a277f21a/attachment.html>


More information about the mesa-dev mailing list