Disable mesa device select layer. Closes #2093

This commit is contained in:
baldurk
2020-11-13 14:23:19 +00:00
parent 6320923966
commit 9fa89e39e3
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -108,6 +108,11 @@ class VulkanHook : LibraryHook
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_RTSS_LAYER", "1"));
// mesa device select layer crashes when it calls GPDP2 inside vkCreateInstance, which fails on
// the current loader.
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "NODEVICE_SELECT", "1"));
#if ENABLED(RDOC_WIN32)
// on windows support self-hosted capture by checking our filename and tweaking the env var we
// set
+5
View File
@@ -4144,6 +4144,11 @@ ReplayStatus Vulkan_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts,
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_VULKAN_OBS_CAPTURE", "1"));
// mesa device select layer crashes when it calls GPDP2 inside vkCreateInstance, which fails on
// the current loader.
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "NODEVICE_SELECT", "1"));
Process::ApplyEnvironmentModification();
void *module = LoadVulkanLibrary();