Mesa (staging/20.0): radv: enable zero VRAM for Doom Eternal
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 9 18:01:50 UTC 2020
Module: Mesa
Branch: staging/20.0
Commit: a7a9df28a9029bf4ce835dbbc57b80535d44011f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7a9df28a9029bf4ce835dbbc57b80535d44011f
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri May 29 20:02:49 2020 +0200
radv: enable zero VRAM for Doom Eternal
That fixes some rendering issues. Probably some unitialized data
from the game.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3064
Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5262>
(cherry picked from commit fd5ffd3a83e178f14fcc69806d3a52724f05b56c)
---
.pick_status.json | 2 +-
src/amd/vulkan/radv_device.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.pick_status.json b/.pick_status.json
index 59d49738288..44d00837709 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -1714,7 +1714,7 @@
"description": "radv: enable zero VRAM for Doom Eternal",
"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 c2602b489cf..5682ff2c908 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -637,6 +637,9 @@ radv_handle_per_app_options(struct radv_instance *instance,
* uninitialized data in an indirect draw.
*/
instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
+ } else if (!strcmp(name, "DOOMEternal")) {
+ /* Zero VRAM for Doom Eternal to fix rendering issues. */
+ instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
}
}
More information about the mesa-commit
mailing list