Mesa (staging/20.3): radv: set invariantgeom for Shadow of the Tomb Raider
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 13 00:04:28 UTC 2021
Module: Mesa
Branch: staging/20.3
Commit: adf09c9bf0e73f0b4c531af629b90012b36fdd9b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=adf09c9bf0e73f0b4c531af629b90012b36fdd9b
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date: Mon Dec 14 22:00:23 2020 +0000
radv: set invariantgeom for Shadow of the Tomb Raider
Work around flickering foliage on GFX10.3
Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4064
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8104>
(cherry picked from commit 255ca7ecda36c3623ef730304a13aa2e8b8c0cf8)
---
.pick_status.json | 2 +-
src/amd/vulkan/radv_device.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/.pick_status.json b/.pick_status.json
index c252613351e..c61d5176396 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -400,7 +400,7 @@
"description": "radv: set invariantgeom for Shadow of the Tomb Raider",
"nominated": true,
"nomination_type": 0,
- "resolution": 0,
+ "resolution": 1,
"master_sha": null,
"because_sha": null
},
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 3f8b5eb812c..1284eecc647 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -608,6 +608,10 @@ radv_handle_per_app_options(struct radv_instance *instance,
} else if (!strcmp(name, "DOOMEternal")) {
/* Zero VRAM for Doom Eternal to fix rendering issues. */
instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
+ } else if (!strcmp(name, "ShadowOfTheTomb")) {
+ /* Work around flickering foliage for native Shadow of the Tomb Raider
+ * on GFX10.3 */
+ instance->debug_flags |= RADV_DEBUG_INVARIANT_GEOM;
}
}
More information about the mesa-commit
mailing list