[Bug 74852] interface blocks not working with #version 140 with #extension : GL_ARB_separate_shader_objects : enable

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 12 09:02:50 PST 2014


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

Dan Ginsburg <dang at valvesoftware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Dan Ginsburg <dang at valvesoftware.com> ---
I am completely wrong about this bug.  #version 140 and
GL_ARB_separate_shader_objects do not support redeclaration of interface
blocks.  I will fix this on our side.

The relevant language from the GL_ARB_separate_shader_objects spec:

      When using vertex or fragment shaders with version 140 or lower in
      separable programs, the language doesn't support input and output blocks
      or redeclaration of gl_PerVertex or gl_PerFragment.  In such cases, an
      implicit block redeclaration is formed from the set of vertex shader
      outputs or fragment shader inputs redeclared according to Section 7.7 of
      the OpenGL Shading Language Specification.  The order of individual
      variable redeclarations does not affect the resulting implicit block
      redeclaration.  The block matching rules described above are then
      applied to such implicit block redeclarations.  Note that an implicit
      block redeclaration is never considered to match with an explicit block
      redeclaration.

Certain other implementations require the interface block definition in
#version 140, but mesa has it right and the other implementations are
incorrect.

-- 
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/20140212/3eb07123/attachment.html>


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