<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [snb] TearFree now triggers stuck semaphores (due to Eliminate the synchronous wait from inside TearFree)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70764#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [snb] TearFree now triggers stuck semaphores (due to Eliminate the synchronous wait from inside TearFree)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70764">bug 70764</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>One last thing you can test is:
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 7fcade6..1ae9ec0 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -4303,12 +4303,14 @@ static bool wait_for_shadow(struct sna *sna, struct
sna_pixmap *priv, unsigned f
sna_mode_wakeup(sna);
if (sna->mode.shadow_flip) {
- bo = kgem_create_2d(&sna->kgem,
- pixmap->drawable.width,
- pixmap->drawable.height,
- pixmap->drawable.bitsPerPixel,
- priv->gpu_bo->tiling,
- CREATE_EXACT | CREATE_SCANOUT);
+ bo = NULL;
+ if (0)
+ bo = kgem_create_2d(&sna->kgem,
+ pixmap->drawable.width,
+ pixmap->drawable.height,
+ pixmap->drawable.bitsPerPixel,
+ priv->gpu_bo->tiling,
+ CREATE_EXACT | CREATE_SCANOUT);
if (bo != NULL) {
DBG(("%s: replacing still-attached GPU bo\n",
__FUNCTION__));
applied to
commit b70390b4f824afeed8f1b5a9baf79e33377405cd
Author: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
Date: Wed Oct 23 11:15:28 2013 +0100
sna: Reset bo after allocation failure during wait-for-shadow</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>