Nouveau Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: [Bug 108651] Screen flickering when using compositor with OpenGL backend
Date: Sat, 10 Nov 2018 18:44:17 +0000	[thread overview]
Message-ID: <bug-108651-8800-AJ3yAxNneD@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-108651-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1484 bytes --]

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

--- Comment #5 from John Lindgren <john-ytntcHzVV1kcWVvVuXF20w@public.gmane.org> ---
This probably isn't specific to nouveau.  I am using Intel graphics
(modesetting driver) and I was also bitten by screen flickering in compton
after the switch to XCB (commits 43f3744fea07 and 7af815a0aaaf).

It is specific to DRI2.  With DRI3 or software rendering
(LIBGL_ALWAYS_SOFTWARE=1), the flickering goes away.

Looking at mesa source (src/glx/dri2.c), DRI2 seems to be incompatible with xcb
event processing due to usage of XESetWireToEvent()/XESetEventToWire(), which
hook into the traditional Xlib event processing.  Without Xlib in the loop,
DRI2 misses its Invalidate events and the result is that glXSwapBuffers()
doesn't work as expected.  (Take a look at src/glx/dri2_glx.c -
dri2XcbSwapBuffers() contains an explicit XSync() call to wait for Invalidate
events, which it never gets.)

One workaround I found is to change the following line in src/glx/dri2_glx.c:

   pdp->invalidateAvailable = (pdp->driMinor >= 3);

To this:

   pdp->invalidateAvailable = 0;

This causes mesa to think it's using an older X Server that doesn't send
Invalidate events and use some kind of internal fallback.  It's enough to make
the flickering go away, but I don't know what other side effects it has.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2292 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2018-11-10 18:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-04 20:33 [Bug 108651] New: Screen flickering when using compositor with OpenGL backend bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-108651-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2018-11-04 21:39   ` [Bug 108651] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2018-11-05 12:06   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found]     ` <bug-108651-8800-EQZcRbdEBy-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2018-11-05 14:20       ` Christ-Jan Wijtmans
2018-11-05 14:21   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2018-11-05 20:37   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2018-11-10 18:44   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ [this message]
2018-11-10 18:55   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2018-11-29 10:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2018-11-29 10:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2018-11-29 10:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2019-09-18 17:45   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2019-09-18 17:46   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2019-09-18 20:47   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108651-8800-AJ3yAxNneD@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon-cc+yj3umiyqdupfqwhejaq@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox