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

            Bug ID: 87516
           Summary: glProgramBinary violates spec
           Product: Mesa
           Version: git
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev@lists.freedesktop.org
          Reporter: le...@mapbox.com

The current implementation of ARB_get_program_binary is incomplete and
currently violates the spec.

Specifically these are the major issues:
* glGet with GL_NUM_PROGRAM_BINARY_FORMATS is not implemented, it should return
a at least 1.
* glGet with GL_PROGRAM_BINARY_FORMATS is not implemented, it should return a
list with a single binaryFormat.
* glGetProgramBinary succeeds with a binary length of zero, and also does not
set binaryFormat to a valid value, it should always succeed and set
binaryFormat to the value returned by GL_PROGRAM_BINARY_FORMATS.
* glProgramBinary always fails with GL_INVALID_OPERATION despite program being
valid, it should always succeed if binaryFormat is correct, and return
GL_INVALID_ENUM if not. Additionally it should always set GL_LINK_STATUS to
GL_FALSE to indicate the program will need to load source anyway.

If these are not to be implemented ARB_program_binary and GL 4.1+ support
should not be advertised by Mesa.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to