<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - glProgramBinary violates spec"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87516">87516</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>glProgramBinary violates spec
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>leith@mapbox.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>