[Wayland-bugs] [Bug 48752] [i915 i965 Wayland] dnd start with black blocks against cairo-gl

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 16 04:32:52 PDT 2012


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

--- Comment #2 from Ander Conselvan de Oliveira <conselvan2 at gmail.com> 2012-04-16 04:32:52 PDT ---
(In reply to comment #1)
> Simple investigation shows:
> when build against cairo-gl, display_create_egl_window_surface() is using
> type(struct egl_window_surface_data) to set_user_data, while
> display_get_buffer_for_surface() is using type (struct surface_data) to
> get_user_data. Two structures are incompatible

That's not the cause of the black boxes bug, but that does cause the dnd client
to terminate when a drag is started, since it sends garbage as the wl_buffer
for the surface attach in dnd_button_handler().

The black boxes problem is that since weston commit bad42973 [1], the cairo
surfaces for the dnd items is created from an wl_egl_window. This surface will
have an embeded operand of type CAIRO_GL_OPERAND_TEXTURE, but no texture is
actually created. The end result is that texture 0 is bound on 
_cairo_gl_context_setup_operand().


 [1] 
    commit bad429738087a851ab293e5a9329efdf30393333
    Author: Kristian Høgsberg <krh at bitplanet.net>
    Date:   Tue Apr 10 11:49:45 2012 -0400

        window: Drop EGLImage surface type

-- 
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 Wayland-bugs mailing list