From 0433795378b9b64d2e6014335ed12d7334b8ef8c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 2 Mar 2023 12:26:11 +0000 Subject: [PATCH] Disable another buggy vulkan layer --- renderdoc/driver/vulkan/vk_layer.cpp | 6 ++++++ renderdoc/driver/vulkan/vk_replay.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/renderdoc/driver/vulkan/vk_layer.cpp b/renderdoc/driver/vulkan/vk_layer.cpp index f9519b535..131689029 100644 --- a/renderdoc/driver/vulkan/vk_layer.cpp +++ b/renderdoc/driver/vulkan/vk_layer.cpp @@ -116,6 +116,12 @@ class VulkanHook : LibraryHook Process::RegisterEnvironmentModification( EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_VULKAN_OW_OBS_CAPTURE", "1")); + // buggy program AgaueEye which also doesn't have a proper layer configuration. As a result + // this is likely to have side-effects but probably also on other buggy layers that duplicate + // sample code without even changing the layer json + Process::RegisterEnvironmentModification( + EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_SAMPLE_LAYER", "1")); + // mesa device select layer crashes when it calls GPDP2 inside vkCreateInstance, which fails on // the current loader. Process::RegisterEnvironmentModification( diff --git a/renderdoc/driver/vulkan/vk_replay.cpp b/renderdoc/driver/vulkan/vk_replay.cpp index 4aab4da3f..3f33c851e 100644 --- a/renderdoc/driver/vulkan/vk_replay.cpp +++ b/renderdoc/driver/vulkan/vk_replay.cpp @@ -4605,6 +4605,12 @@ RDResult Vulkan_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts, IRep Process::RegisterEnvironmentModification( EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_VULKAN_OW_OBS_CAPTURE", "1")); + // buggy program AgaueEye which also doesn't have a proper layer configuration. As a result + // this is likely to have side-effects but probably also on other buggy layers that duplicate + // sample code without even changing the layer json + Process::RegisterEnvironmentModification( + EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_SAMPLE_LAYER", "1")); + // mesa device select layer crashes when it calls GPDP2 inside vkCreateInstance, which fails on // the current loader. Process::RegisterEnvironmentModification(