driconf: add workaround for Enter The Gungeon
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 9 Dec 2020 14:41:59 +0000 (15:41 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 16 Dec 2020 09:52:54 +0000 (10:52 +0100)
commit1a4c4cd110380c99c51e57c59c868beac01234d2
treefde0229bec27eecfd2c569f22f5b44390ed6164c
parent296316b5dec2d3512408859c38f50dd308a75bbc
driconf: add workaround for Enter The Gungeon

Quoting a comment on the bug report:

   I suspect the shader is incorrect.

   When a (conditional) discard is executed then control flow
   becomes non-uniform, meaning that subsequent implicit
   derivatives required for the texture operation are not
   computed correctly.

Using glsl_correct_derivatives_after_discard fixes it. Note
that for radeonsi this requires LLVM master to work properly.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1386
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8005>
src/util/00-mesa-defaults.conf