[Mesa-dev] [Bug 64172] piglit ext_transform_feedback-change-size offset-grow regression

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 2 20:05:59 PDT 2013


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

Zack Rusin <zackr at vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|regression                  |

--- Comment #1 from Zack Rusin <zackr at vmware.com> ---
Unfortunately, this is not a regression. We were over overflowing without the
patch, now we're simply correctly computing the overflow.

Mesa's transformfeedback.c:compute_transform_feedback_buffer_sizes
incorrectly computes size for gallium's so targets: in particular it does:
GLsizeiptr available_space
         = buffer_size <= offset ? 0 : buffer_size - offset;
computed_size = available_space;
and returns that as the size of the buffer. Then when setting gallium stream
output targets it sets the computed_size as the new buffer size and
then it also sets the same offset it used when computing the computed_size. So
essentially for gallium:
buffer_size = buffer_size - offset
offset = offset
which means that gallium's stream output target's buffer size is always
'offset' less than it should be. I'm not going to have time to fix this right
now..

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


More information about the mesa-dev mailing list