From c4aa2be477e05841f937dedcebf177eed55f6bca Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Mon, 23 Dec 2024 03:00:36 +0100 Subject: [PATCH] drirc/nvk: force_vk_vendor=-1 for Artifact Classic Without this the game crashes during the loading screen. The game uses vkUpdateDescriptorSetWithTemplate and, in certain cases, passes VkDescriptorBufferInfo structures where the offset + range exceeds the size of the buffer. This triggers an assertion when vk_buffer_range() is called, causing the game to crash. When the nvidia vendor id is used the range is consistently set to 65536. Without it the range varies and is much smaller - never exceeding 1000. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12349 Cc: stable Reviewed-by: Faith Ekstrand (cherry picked from commit e38150f2fa150f80c8f106baf4ef61a7fe0cb1a0) Part-of: --- .pick_status.json | 2 +- src/util/00-mesa-defaults.conf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 2fe31b16973..d7ea159347b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2964,7 +2964,7 @@ "description": "drirc/nvk: force_vk_vendor=-1 for Artifact Classic", "nominated": false, "nomination_type": 0, - "resolution": 4, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf index 6e9bb2c29fe..94c663db7c4 100644 --- a/src/util/00-mesa-defaults.conf +++ b/src/util/00-mesa-defaults.conf @@ -1334,6 +1334,9 @@ TODO: document the other workarounds. + +