<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - [bisected ivb] Small black box corruption in firefox"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68410#c42">Comment # 42</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO --- - [bisected ivb] Small black box corruption in firefox"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68410">bug 68410</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>If not CC, the other likey candidate is the change in surfaces, so maybe:
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 4b60f53..1adb9c2 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -1098,6 +1098,7 @@ gen7_emit_state(struct sna *sna,
uint16_t wm_binding_table)
{
bool need_stall;
+ bool need_flush;
assert(op->dst.bo->exec);
@@ -1107,8 +1108,12 @@ gen7_emit_state(struct sna *sna,
gen7_emit_wm(sna, GEN7_KERNEL(op->u.gen7.flags));
gen7_emit_vertex_elements(sna, op);
- need_stall = gen7_emit_binding_table(sna, wm_binding_table);
- need_stall &= gen7_emit_drawing_rectangle(sna, op);
+ need_flush = gen7_emit_binding_table(sna, wm_binding_table);
+ need_stall = gen7_emit_drawing_rectangle(sna, op) && need_flush;
+
+ need_flush |= sna->render_state.gen7.emit_flush;
+ if (ALWAYS_FLUSH)
+ need_flush = true;
if (ALWAYS_STALL)
need_stall = true;
@@ -1117,10 +1122,9 @@ gen7_emit_state(struct sna *sna,
kgem_clear_dirty(&sna->kgem);
assert(op->dst.bo->exec);
kgem_bo_mark_dirty(op->dst.bo);
- sna->render_state.gen7.emit_flush = false;
- need_stall = false;
+ need_flush = need_stall = false;
}
- if (ALWAYS_FLUSH || (sna->render_state.gen7.emit_flush &&
GEN7_READS_DST(op->u.gen7.flags))) {
+ if (need_flush) {
gen7_emit_pipe_flush(sna, need_stall);
need_stall = false;
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>