[Mesa-dev] [Bug 101867] Launch options window renders black in Feral Games in current Mesa trunk

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 21 17:06:48 UTC 2017


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

--- Comment #1 from James Legg <jlegg at feralinteractive.com> ---
In loader_dri3_swap_buffers_msc, dri3_find_back increments the index used for
selecting the back buffer (draw->cur_back) to the second (index 1) out of two
buffer slots because the buffer in the first slot (index 0) is busy. When there
is no buffer in the now selected slot, loader_dri3_swap_buffers_msc fails
without swapping. This was introduced in
81fb1547772d42c527318837d4207ecdb6899e5d, previously it would have reused the
busy buffer and swapped something, even if it resulted in tearing.

When a clear occurs, dri3_get_buffer is used to create a buffer, which also
uses dri3_find_back, but this stays on the slot index for the not yet created
buffer. However, the options window is not using glClear. It does exactly one
draw, with glDrawElementsBaseVertex, that covers the whole window.
glDrawElementsBaseVertex doesn't seem to validate the framebuffer in the same
way as glClear, so it is stuck on the index with uncreated back buffer despite
repeatedly drawing and swapping.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170721/5fb98f3e/attachment-0001.html>


More information about the mesa-dev mailing list