From f22867efc5fc3b970a706f7997b997048c969a89 Mon Sep 17 00:00:00 2001 From: lat9nq Date: Sat, 28 May 2022 02:33:23 -0400 Subject: yuzu-qt: Attempt to workaround broken Vulkan installations This does a few things in order to make the default setting Vulkan workable. - When yuzu boots, it just opens the Vulkan library. - If it works, all good and we continue with Vulkan as the default. - If something breaks, a new file in the config directory will be left behind (this is deleted normally). - If Vulkan is not working, has_broken_vulkan is set to true. - The first time this happens, a warning is displayed to notify the user. - This forces use of OpenGL, and Vulkan cannot be selected. - The Shader Backend selector is made accessible for use in custom configurations. - To disable has_broken_vulkan, the user needs to press a button in Graphics Configuration to manually run the Vulkan device enumeration. --- src/yuzu/check_vulkan.h | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/yuzu/check_vulkan.h (limited to 'src/yuzu/check_vulkan.h') diff --git a/src/yuzu/check_vulkan.h b/src/yuzu/check_vulkan.h new file mode 100644 index 000000000..3b199d3bb --- /dev/null +++ b/src/yuzu/check_vulkan.h @@ -0,0 +1 @@ +bool CheckVulkan(); -- cgit v1.2.3 From 500b01076e1a96b9c133ff663daad6f9dd8e4039 Mon Sep 17 00:00:00 2001 From: lat9nq Date: Sun, 29 May 2022 22:26:27 -0400 Subject: yuzu-qt: Make has_broken_vulkan only for crashes Being able to catch and handle a Vulkan exception is not what this is for. --- src/yuzu/check_vulkan.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/yuzu/check_vulkan.h') diff --git a/src/yuzu/check_vulkan.h b/src/yuzu/check_vulkan.h index 3b199d3bb..e4ea93582 100644 --- a/src/yuzu/check_vulkan.h +++ b/src/yuzu/check_vulkan.h @@ -1 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + bool CheckVulkan(); -- cgit v1.2.3