From 632a765ea2e5a2b5166ce1577dd904d1fd0fd942467959dc6e45b352617d1ffc Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 23 Sep 2020 20:10:24 +0000 Subject: [PATCH] Accepting request 836403 from home:mrostecki:branches:X11:Wayland - Add patch which reverts a commit breaking Steam Play / Proton: * 0001-Revert-loader-Return-error-if-layer-loading-failed.patch Related issues: * https://github.com/ValveSoftware/steam-for-linux/issues/7368 * https://github.com/KhronosGroup/Vulkan-Loader/issues/472 OBS-URL: https://build.opensuse.org/request/show/836403 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-loader?expand=0&rev=67 --- ...Return-error-if-layer-loading-failed.patch | 28 +++++++++++++++++++ vulkan-loader.changes | 9 ++++++ vulkan-loader.spec | 3 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0001-Revert-loader-Return-error-if-layer-loading-failed.patch diff --git a/0001-Revert-loader-Return-error-if-layer-loading-failed.patch b/0001-Revert-loader-Return-error-if-layer-loading-failed.patch new file mode 100644 index 0000000..79b37aa --- /dev/null +++ b/0001-Revert-loader-Return-error-if-layer-loading-failed.patch @@ -0,0 +1,28 @@ +From 8fdc320b442c45f25044826715058ce3569f3ae1 Mon Sep 17 00:00:00 2001 +From: Charles Giessen +Date: Thu, 17 Sep 2020 16:31:16 -0600 +Subject: [PATCH] Revert "loader: Return error if layer loading failed" + +This reverts commit 49648d8fb398ac7d3d8e159939de060b8e759ecf. +Many layers were relying on silently failing to allow 32/64 bit versions +to work on linux. A later commit will properly check for failing layers. +--- + loader/loader.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/loader/loader.c b/loader/loader.c +index dd7f7d5b7..4d8865e13 100644 +--- a/loader/loader.c ++++ b/loader/loader.c +@@ -5942,7 +5942,7 @@ VkResult loader_create_instance_chain(const VkInstanceCreateInfo *pCreateInfo, c + + lib_handle = loaderOpenLayerFile(inst, "instance", layer_prop); + if (!lib_handle) { +- return VK_ERROR_LAYER_NOT_PRESENT; ++ continue; + } + + if (NULL == layer_prop->functions.negotiate_layer_interface) { +-- +2.28.0 + diff --git a/vulkan-loader.changes b/vulkan-loader.changes index 7b1d026..7397b08 100644 --- a/vulkan-loader.changes +++ b/vulkan-loader.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Sep 23 19:46:21 UTC 2020 - MichaƂ Rostecki + +- Add patch which reverts a commit breaking Steam Play / Proton: + * 0001-Revert-loader-Return-error-if-layer-loading-failed.patch + Related issues: + * https://github.com/ValveSoftware/steam-for-linux/issues/7368 + * https://github.com/KhronosGroup/Vulkan-Loader/issues/472 + ------------------------------------------------------------------- Thu Sep 10 07:47:39 UTC 2020 - Dirk Mueller diff --git a/vulkan-loader.spec b/vulkan-loader.spec index ec4a0a2..dc7b19e 100644 --- a/vulkan-loader.spec +++ b/vulkan-loader.spec @@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++ URL: https://github.com/KhronosGroup/Vulkan-Loader Source: https://github.com/KhronosGroup/Vulkan-Loader/archive/v%version.tar.gz Source9: baselibs.conf +Patch0: 0001-Revert-loader-Return-error-if-layer-loading-failed.patch BuildRequires: cmake >= 3.4 BuildRequires: gcc-c++ >= 4.8 BuildRequires: pkgconfig @@ -66,7 +67,7 @@ This subpackage contains the development headers for packages wanting to make use of Vulkan. %prep -%autosetup -n Vulkan-Loader-%version +%autosetup -p1 -n Vulkan-Loader-%version %build %cmake \