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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 19 06:13:39 PDT 2015


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

--- Comment #40 from Hans de Goede <jwrdegoede at fedoraproject.org> ---
Hi All,

(In reply to Olivier Fourdan from comment #11)
> Created attachment 116536 [details]
> test program

So after some time away from this bug, I'm back onto it. The problem is that
the test program ends up using
GL_TEXTURE_2D type textures / GLX_TEXTURE_2D_EXT target, where it should be
using GL_TEXTURE_RECTANGLE_ARB.

The root cause for this seems to be that epoxy_has_glx_extension (dpy, screen,
"GL_ARB_texture_rectangle") always returns false, even though the extension is
there, as confirmed with both glxinfo and glxgears-info.

Now the extension in question is not a glx-extension, but a gl-extension, so
I've also tried calling:
epoxy_has_gl_extension ("GL_ARB_texture_rectangle") but that always returns
false too.

Simply forcing has_texture_rectangle = true to work around this (epoxy?) bug
actually results in the test program not working anywhere at all (tried both on
newer nvidia cards with nouveau and on intel gfx), not sure why. Can you
provide a version of the test program where setting has_texture_rectangle =
true actually works, or does this work for you ?

As for the fallback to GL_TEXTURE_2D / GLX_TEXTURE_2D_EXT not working on nv3x,
this is something which could likely be made to work, but that is quite a bit
of work and will be slow. I believe it would be better to first try to get
GL_TEXTURE_RECTANGLE_ARB to work, and then see if we still need to get
GL_TEXTURE_2D to work at all.

Also in the GL_TEXTURE_2D fallback path you should probably check for npot
support for 2d textures (rect textures always support npot) and if that is not
available refuse to do compositing at all.

Regards,

Hans

-- 
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/20151019/a9c1b08a/attachment-0001.html>


More information about the Nouveau mailing list