From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 90871] NV30: Xfwm4 use_compositing - garbled display Date: Wed, 21 Oct 2015 08:39:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0190102809==" 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 --===============0190102809== Content-Type: multipart/alternative; boundary="1445416786.dDE5fa11.16185"; charset="UTF-8" --1445416786.dDE5fa11.16185 Date: Wed, 21 Oct 2015 08:39:46 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=90871 Ilia Mirkin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |NOTOURBUG --- Comment #49 from Ilia Mirkin --- (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. --1445416786.dDE5fa11.16185 Date: Wed, 21 Oct 2015 08:39:46 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 90871
What Removed Added
Status ASSIGNED RESOLVED
Resolution --- NOTOURBUG

Comment # 49 on bug 90871 from
(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.
--1445416786.dDE5fa11.16185-- --===============0190102809== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK --===============0190102809==--