Skip to content

Commit 210f02a

Browse files
committed
[dxvk] Enable sparse binding features if supported
1 parent 780af54 commit 210f02a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dxvk/dxvk_adapter.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ namespace dxvk {
326326
// Always enable robust buffer access
327327
enabledFeatures.core.features.robustBufferAccess = VK_TRUE;
328328

329+
// Always enable sparse residency if we can use it for efficient zero-initialization
330+
if (m_deviceInfo.core.properties.sparseProperties.residencyNonResidentStrict) {
331+
enabledFeatures.core.features.sparseBinding = m_deviceFeatures.core.features.sparseBinding;
332+
enabledFeatures.core.features.sparseResidencyBuffer = m_deviceFeatures.core.features.sparseResidencyBuffer;
333+
}
334+
329335
// Always enable features used by the HUD
330336
enabledFeatures.core.features.multiDrawIndirect = VK_TRUE;
331337
enabledFeatures.vk11.shaderDrawParameters = VK_TRUE;

0 commit comments

Comments
 (0)