From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 90871] NV30: Xfwm4 use_compositing - garbled display
Date: Mon, 19 Oct 2015 21:46:14 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0223252395=="
Return-path:
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Sender: "Nouveau"
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
List-Id: nouveau.vger.kernel.org
--===============0223252395==
Content-Type: multipart/alternative; boundary="1445291174.E8aB1.1676"; charset="UTF-8"
--1445291174.E8aB1.1676
Date: Mon, 19 Oct 2015 21:46:14 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=90871
--- Comment #42 from Ilia Mirkin ---
(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.
--1445291174.E8aB1.1676
Date: Mon, 19 Oct 2015 21:46:14 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 42
on bug 90871
from Ilia Mirkin
(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.
--1445291174.E8aB1.1676--
--===============0223252395==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt
YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy
ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK
--===============0223252395==--