[Mesa-dev] [Bug 61012] alloc_layout_array tx * ty assertion failure when making pbuffer current

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 18 09:06:19 PST 2013


--- Comment #3 from Roland Scheidegger <sroland at vmware.com> ---
(In reply to comment #0)
> The following(ish) code produces an assertion failure using llvmpipe libGL
> from Mesa 9.0.2:
> Near as I can tell, the call responsible for storing that state with the
> pbuffer is this code:
> http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/glx/
> xlib/xm_api.c?id=369e46888904c6d379b8b477d9242cff1608e30e#n460
> A call to get_drawable_size retrieves the size of the pbuffer drawable into
> local variables width and height, but these values never make it into the
> XMesaBuffer structure.

This isn't llvmpipe specific right?
That call you mention indeed looks a bit odd. The function comment explicitly
states Width/Height of the new buffer will be 0 so I don't know why it calls
get_drawable_size() there in the first place (probably some leftover from older
It looks like for pixmaps/windows that information will be filled out later at
MakeCurrent time, which will eventually call xmesa_check_buffer_size() which
will fill it in. However, for pbuffers this is a noop. My guess is it should be
filled out in XMesaCreatePBuffer() instead since pbuffers have fixed size (?).

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/20130218/700c55e3/attachment.html>

More information about the mesa-dev mailing list