[Nouveau] [Bug 90871] NV30: Xfwm4 use_compositing - garbled display

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 21 01:39:46 PDT 2015


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

Ilia Mirkin <imirkin at alum.mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #49 from Ilia Mirkin <imirkin at alum.mit.edu> ---
(In reply to Olivier Fourdan from comment #47)
> Yes, most likely. This code is still early beta in xfwm4. I'll try to fix it
> and Poma will be able to test I guess.

Looking at http://git.xfce.org/xfce/xfwm4/tree/src/compositor.c, you have at
least the following issues:

    screen_info->has_texture_rectangle =
        epoxy_has_glx_extension (myScreenGetXDisplay (screen_info),
                                 screen_info->screen,
                                 "GL_ARB_texture_rectangle");

    screen_info->has_texture_non_power_of_two =
        epoxy_has_glx_extension (myScreenGetXDisplay (screen_info),
                                 screen_info->screen,
                                 "GL_ARB_texture_non_power_of_two");

These are not GLX exts, they are GL exts, so you have to use
epoxy_has_gl_extension. However you have to make sure that a GL context is
active (i.e. glXMakeCurrent) before trying to do epoxy_has_gl_extension.

redraw_glx_texture -- this needs to add a width/height scale to the GL_TEXTURE
matrix for rect textures, since they use non-normalized coordinates. This
probably never came up before since the checks above didn't succeed.

If you don't have has_texture_rectangle *and* you don't have
has_texture_non_power_of_two that means that you can only use POT sized pixmaps
with GL_TEXTURE_2D. Probably not worth supporting that. AFAIK ~every driver
supports ARB_texture_rectangle... except seemingly nv04 (but nv10+ has it).

Marking this as NOTOURBUG for now, if issues persist, feel free to open a new
issue.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20151021/59935847/attachment.html>


More information about the Nouveau mailing list