[Bug 74005] [i965 Bisected]Piglit/glx_glx-make-glxdrawable-current fails

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 12 03:26:02 PDT 2014


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

--- Comment #6 from Iago Toral <itoral at igalia.com> ---
Created attachment 95650
  --> https://bugs.freedesktop.org/attachment.cgi?id=95650&action=edit
Patch

The problem seems to live in the fact that we check whether we have a viewport
set to decide if we need to generate buffers for the drawable. This is not a
valid solution for the scenario in which we switch drawables for the same
context, since the viewport will be initialized the first time that we call
MakeCurrent with one of the drawables. Thus, switching to a different drawable
after the first MakeCurrent will not produce buffers for the new drawable,
leading to the problem.

The patch reverts the behavior to the original solution with a small change to
support single buffer drawables (which was the reason the bad commit was
introduced). Basically, it checks if we have a render buffer for the drawable,
but instead of checking the BACK_LEFT buffer which only works for double buffer
drawables  we check the FRONT_LEFT buffer, which should work for both single 
buffer and double buffer drawables.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140312/dca40ed2/attachment.html>


More information about the intel-3d-bugs mailing list