[Bug 97299] Lag on terminal with compositing after 1f6dfc9

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 17 20:43:06 UTC 2016


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

--- Comment #4 from Chris Wilson <chris at chris-wilson.co.uk> ---
Tracking through this the issue really appears to be that in dri2 there is a
synchronisation point in comptom with X when it acquires the textures for
composition, but in dri3 there is no equivalent X11 request. Instead it queries
the XserverRegion corresponding to the damage (rather than tracking the latest
damage through DamageNotifyEvents) which means that the rendering in the
compositor lags behind the last flush in X when sending the damage event.

As I understand it, it is lacking an appropriate glXWaitX() like:

diff --git a/src/opengl.c b/src/opengl.c
index 5a98f4e..c6cea55 100644
--- a/src/opengl.c
+++ b/src/opengl.c
@@ -1050,6 +1050,8 @@ glx_set_clip(session_t *ps, XserverRegion reg, const
reg_data_t *pcache_reg) {
     rects = &rect_blank;
   }

+  glXWaitX();
+
   assert(nrects);
   if (1 == nrects) {
     glEnable(GL_SCISSOR_TEST);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160817/addabcef/attachment.html>


More information about the intel-gfx-bugs mailing list