<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 - glGetActiveAtomicCounterBufferiv is broken"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93796">93796</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>glGetActiveAtomicCounterBufferiv is broken
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>nioko1337@googlemail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=121154" name="attach_121154" title="Fragment shader to reproduce bug">attachment 121154</a> <a href="attachment.cgi?id=121154&action=edit" title="Fragment shader to reproduce bug">[details]</a></span>
Fragment shader to reproduce bug

glGetActiveAtomicCounterBufferiv returns strange values for every <pname> I
tested so far. Using the attached fragment shader, I get the following outputs
(The atomic counter buffers have the ids 0 and 1, queried with glGetProgramiv):

glGetActiveAtomicCounterBufferiv(program, 0, GL_ATOMIC_COUNTER_BUFFER_BINDING,
&binding) -> binding is 1 (should be 0)

glGetActiveAtomicCounterBufferiv(program, 1, GL_ATOMIC_COUNTER_BUFFER_BINDING,
&binding) -> binding is 1 (correct)


glGetActiveAtomicCounterBufferiv(program, 0,
GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE, &size) -> size is 1 (correct I think)

glGetActiveAtomicCounterBufferiv(program, 1,
GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE, &size) -> size is 4294967297 (obviously not
correct, should be 1)


glGetActiveAtomicCounterBufferiv(program, 0,
ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS, &no_uniforms) -> no_uniforms is 1
(correct)

glGetActiveAtomicCounterBufferiv(program, 1,
ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS, &no_uniforms) -> no_uniforms is
4294967297 (obviously not correct, should be 1)

I'm using latest git mesa, dmesg does not output anything.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>