[Nouveau] [Bug 93373] GLAMOR triggers visual artifacts with nouveau GL backend

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 14 09:08:40 PST 2015


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|sometimes hickup with       |GLAMOR triggers visual
                   |persistent garbaby          |artifacts with nouveau GL
                   |                            |backend

--- Comment #4 from Ilia Mirkin <imirkin at alum.mit.edu> ---
OK, you're using a GM107, which means that you're *not* using
xf86-video-nouveau 1.0.12 since we dropped our GLAMOR integration (since it was
buggy). You're now using xf86-video-modesetting, which has a functioning GLAMOR
integration.

Unfortunately GLAMOR does something which makes nouveau very sad. I've found a
solution, but it's roughly equivalent to pouring cement into the piping. If
you'd like, you can patch your mesa build with

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
index c464904..b3b6627 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
@@ -976,6 +976,7 @@ nvc0_draw_vbo(struct pipe_context *pipe, const struct
pipe_draw_info *info)
    nvc0_update_prim_restart(nvc0, info->primitive_restart,
info->restart_index);

    if (nvc0->base.vbo_dirty) {
+      IMMED_NVC0(push, SUBC_3D(NV10_SUBCHAN_REF_CNT), 0);
       if (nvc0->screen->eng3d->oclass < GM107_3D_CLASS)
          IMMED_NVC0(push, NVC0_3D(VERTEX_ARRAY_FLUSH), 0);
       nvc0->base.vbo_dirty = false;

But I haven't the faintest clue why this helps. (I actually haven't tested on
Maxwell, but it helped on Kepler.)

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


More information about the Nouveau mailing list