[Mesa-dev] [Bug 39588] [bisected] mesa demo xeglgears draw nothing if surface type is a pixmap

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 4 02:42:37 PDT 2011


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

--- Comment #5 from Benjamin Franzke <benjaminfranzke at googlemail.com> 2011-08-04 02:42:36 PDT ---
(In reply to comment #4)
> I've bisected this to:
> 
> commit 87dde5b1cd596c4008695ff2db9469f88c09f925
> Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
> Date:   Wed Feb 9 15:30:20 2011 +0100
> 
>     egl_dri2: Use double buffering for window surfaces
> 
> We really should have piglit tests for drawing to pixmaps and pbuffers.  Simple
> tests that just draw a single triangle should be sufficient.

Ok, Thanks for bisecting.

At the time of writing this patch I owned only radeon hardware, where it works
(r600g).
So a piglit test wouldnt have helped directly (sure, you'd have found it
earlier).

The commit was about using dri double buffer configs for window surfaces
(made the wayland backend code nicer).
This results in contexts being created with double buffer configs,
which are somewhat mixed with single buffer configs, when using pixmap
surfaces.

Why does this work with r600g?
st/mesa sets the context's DrawBuffer[0] depending on its visual render_buffer,
which is set by st/dri depending on the drawables gl_config's doubleBufferMode.

I'll attach a patch that does this for intel in make_current.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list