[Bug 68718] [snb] vsync hang

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 11 08:20:41 PST 2014


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

--- Comment #20 from Chris Wilson <chris at chris-wilson.co.uk> ---
Guessing now, but maybe try this delta patch on top:

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 99afbd1..2620669 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3984,7 +3984,7 @@ static bool sna_emit_wait_for_scanline_gen6(struct sna
*sna,
        b = kgem_get_batch(&sna->kgem);

        /* Both the LRI and WAIT_FOR_EVENT must be in the same cacheline */
-       if (((sna->kgem.nbatch + 6) >> 4) != (sna->kgem.nbatch + 9) >> 4) {
+       if (((sna->kgem.nbatch + 6) >> 3) != (sna->kgem.nbatch + 10) >> 3) {
                int dw = sna->kgem.nbatch + 6;
                dw = ALIGN(dw, 16) - dw;
                while (dw--)


I think the cacheline it mentions is 64bytes, but we may as check against
32bytes just in case.

-- 
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/20140211/9abe1887/attachment.html>


More information about the intel-gfx-bugs mailing list