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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 19 14:46:14 PDT 2015


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

--- Comment #42 from Ilia Mirkin <imirkin at alum.mit.edu> ---
(In reply to Ilia Mirkin from comment #41)
> (In reply to Hans de Goede from comment #40)
> > 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.
> 
> Er yeah, it's not a GLX ext, no reason it'd be coming up in the GLX ext
> list. While similarly-named, they're entirely separate namespaces.
> 
> > 
> > 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.
> 
> That's surprising.
> 
> src/mesa/main/extensions.c:   { "GL_ARB_texture_rectangle",                 
> o(NV_texture_rectangle),                    GL,             2004 },
> src/mesa/state_tracker/st_extensions.c:   extensions->NV_texture_rectangle =
> GL_TRUE;
> 
> So it should actually always be exposed for any st/mesa-backed dri driver
> (including nv30).

Right, so the issue is that this is done before a GL context is made current.
Fixing the code is annoying so I also just hard-coded it to be always-true. And
I also just get a gray screen now. The issue is that Redraw() doesn't account
for the fact that rect textures are non-normalized. I'm going to hack on this
for a bit.

-- 
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/eb5f1d90/attachment.html>


More information about the Nouveau mailing list