[Bug 72375] Corruption in some windows after returning from xlock

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Feb 9 14:29:58 PST 2014


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

--- Comment #25 from Ilia Mirkin <imirkin at alum.mit.edu> ---
That didn't work. I won't pretend to even know what a flush or a stall is,
however by pure code analysis, I think your patch isn't restoring the old
behaviour. I changed it to

-       need_flush =
-               gen6_emit_cc(sna, GEN6_BLEND(op->u.gen6.flags)) &&
-               wm_binding_table & 1;
+       need_stall = need_flush = false;
+       if (gen6_emit_cc(sna, GEN6_BLEND(op->u.gen6.flags))) {
+               if (wm_binding_table & 1)
+                       need_flush = true;
+       }
+               else
+                       need_stall = wm_binding_table & 1;

and that appears to work fine. Note that before, need_stall was always set, and
if gen6_emit_cc(), it was reset to false.

I think a cleaner way to write this might be

need_stall = wm_binding_table & 1;
if (gen6_emit_cc(...))
   need_flush = need_stall;

[and then the flush logic clears need_stall, which is nice]

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


More information about the intel-gfx-bugs mailing list