<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - HyperZ related rendering issue in ARK: Survival Evolved"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102955#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - HyperZ related rendering issue in ARK: Survival Evolved"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102955">bug 102955</a>
from <span class="vcard"><a class="email" href="mailto:maraeo@gmail.com" title="Marek Olšák <maraeo@gmail.com>"> <span class="fn">Marek Olšák</span></a>
</span></b>
<pre>Workaround:
diff --git a/src/gallium/drivers/radeonsi/si_blit.c
b/src/gallium/drivers/radeonsi/si_blit.c
index 67972a2..dc71742 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -903,6 +903,14 @@ static void si_clear(struct pipe_context *ctx, unsigned
buffers,
sctx->db_stencil_clear = true;
si_mark_atom_dirty(sctx, &sctx->db_render_state);
}
+
+ /* TODO: Find out what's wrong here. Fast depth clear with
+ * a dirty DB cache causes corruption in ARK: Survival Evolved.
+ * <a class="bz_bug_link
bz_status_NEW "
title="NEW - HyperZ related rendering issue in ARK: Survival Evolved"
href="show_bug.cgi?id=102955">https://bugs.freedesktop.org/show_bug.cgi?id=102955</a>
+ *
+ * This hack massively decreases back-to-back ClearDepth
performance.
+ */
+ sctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_DB;
}
si_blitter_begin(ctx, SI_CLEAR);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>