[Mesa-dev] [Bug 106411] Invalid gl_InstanceID value with combination of gl_DrawIDARB under OpenGL

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat May 5 18:39:01 UTC 2018


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

            Bug ID: 106411
           Summary: Invalid gl_InstanceID value with combination of
                    gl_DrawIDARB under OpenGL
           Product: Mesa
           Version: 18.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glsl-compiler
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: frustumo at gmail.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

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

The value of gl_InstanceID variable is incorrect when shader has gl_DrawIDARB.
Inserting additional dependency on gl_VertexID or gl_BaseInstanceARB variable
restores gl_InstanceID value.

Uncomment 17 line inside main_vertex.glsl file to fix gl_InstanceID:
// position.x += gl_VertexID * 1e-6f;

There is no such problem under Vulkan API.

Mesa DRI Intel(R) Iris Pro Graphics 580 (Skylake GT4e) 
4.5 (Core Profile) Mesa 18.0.0-rc4

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


More information about the mesa-dev mailing list