[Bug 102955] HyperZ related rendering issue in ARK: Survival Evolved

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 2 16:01:05 UTC 2017


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

--- Comment #3 from Marek Olšák <maraeo at gmail.com> ---
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.
+                * https://bugs.freedesktop.org/show_bug.cgi?id=102955
+                *
+                * This hack massively decreases back-to-back ClearDepth
performance.
+                */
+               sctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_DB;
        }

        si_blitter_begin(ctx, SI_CLEAR);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171002/2977d36a/attachment.html>


More information about the dri-devel mailing list