From b35c0bce4f03065f8fe1096ea7118487333b92ca Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 2 Oct 2024 19:01:31 +0200 Subject: [PATCH] [dxvk] Always enable multiDrawIndirect and shaderDrawParameters features --- src/d3d11/d3d11_device.cpp | 3 --- src/dxvk/dxvk_adapter.cpp | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index cd8c46ee..05895ab6 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -1905,8 +1905,6 @@ namespace dxvk { enabled.core.features.shaderImageGatherExtended = VK_TRUE; enabled.core.features.textureCompressionBC = VK_TRUE; - enabled.vk11.shaderDrawParameters = VK_TRUE; - enabled.vk12.samplerMirrorClampToEdge = VK_TRUE; enabled.vk13.shaderDemoteToHelperInvocation = VK_TRUE; @@ -1923,7 +1921,6 @@ namespace dxvk { // Required for Feature Level 11_0 enabled.core.features.drawIndirectFirstInstance = supported.core.features.drawIndirectFirstInstance; enabled.core.features.fragmentStoresAndAtomics = supported.core.features.fragmentStoresAndAtomics; - enabled.core.features.multiDrawIndirect = supported.core.features.multiDrawIndirect; enabled.core.features.tessellationShader = supported.core.features.tessellationShader; // Required for Feature Level 11_1 diff --git a/src/dxvk/dxvk_adapter.cpp b/src/dxvk/dxvk_adapter.cpp index fbd6fdcf..cea209d9 100644 --- a/src/dxvk/dxvk_adapter.cpp +++ b/src/dxvk/dxvk_adapter.cpp @@ -308,6 +308,10 @@ namespace dxvk { // Always enable robust buffer access enabledFeatures.core.features.robustBufferAccess = VK_TRUE; + // Always enable features used by the HUD + enabledFeatures.core.features.multiDrawIndirect = VK_TRUE; + enabledFeatures.vk11.shaderDrawParameters = VK_TRUE; + // Enable variable multisample rate if supported enabledFeatures.core.features.variableMultisampleRate = m_deviceFeatures.core.features.variableMultisampleRate;