[Mesa-dev] [Bug 93796] glGetActiveAtomicCounterBufferiv is broken

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 20 08:51:28 PST 2016


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

            Bug ID: 93796
           Summary: glGetActiveAtomicCounterBufferiv is broken
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: nioko1337 at googlemail.com
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 121154
  --> https://bugs.freedesktop.org/attachment.cgi?id=121154&action=edit
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20160120/65aa0f07/attachment.html>


More information about the mesa-dev mailing list