Skip to content

Commit

Permalink
[dxvk] Enable sparse binding features if supported
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Mar 3, 2025
1 parent 780af54 commit 210f02a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dxvk/dxvk_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ namespace dxvk {
// Always enable robust buffer access
enabledFeatures.core.features.robustBufferAccess = VK_TRUE;

// Always enable sparse residency if we can use it for efficient zero-initialization
if (m_deviceInfo.core.properties.sparseProperties.residencyNonResidentStrict) {
enabledFeatures.core.features.sparseBinding = m_deviceFeatures.core.features.sparseBinding;
enabledFeatures.core.features.sparseResidencyBuffer = m_deviceFeatures.core.features.sparseResidencyBuffer;
}

// Always enable features used by the HUD
enabledFeatures.core.features.multiDrawIndirect = VK_TRUE;
enabledFeatures.vk11.shaderDrawParameters = VK_TRUE;
Expand Down

0 comments on commit 210f02a

Please sign in to comment.