VirtualBox

Changeset 105143 in vbox


Ignore:
Timestamp:
Jul 4, 2024 10:43:56 AM (5 months ago)
Author:
vboxsync
Message:

libs/dxvk-2.3.1: Make a few more extensions conditional which are not available with MoltenVK to get further on macOS, bugref:10716

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/dxvk-2.3.1/src/dxvk/dxvk_adapter.cpp

    r105141 r105143  
    313313      m_deviceFeatures.core.features.variableMultisampleRate;
    314314
     315#ifndef VBOX
    315316    // Always enable memory model so client APIs can use it
    316317    enabledFeatures.vk12.vulkanMemoryModel = VK_TRUE;
     318#else
     319    /* Not available with MoltenVK. */
     320    enabledFeatures.vk12.vulkanMemoryModel = m_deviceFeatures.vk12.vulkanMemoryModel;
     321#endif
    317322
    318323    // Optionally used by some client API extensions
     
    343348      m_deviceFeatures.vk13.pipelineCreationCacheControl;
    344349
     350#ifndef VBOX
    345351    // Core features that we're relying on in various places
    346352    enabledFeatures.vk13.synchronization2 = VK_TRUE;
    347353    enabledFeatures.vk13.dynamicRendering = VK_TRUE;
     354#else
     355    /* Not available with MoltenVK. */
     356    enabledFeatures.vk13.synchronization2 = m_deviceFeatures.vk13.synchronization2;
     357    enabledFeatures.vk13.dynamicRendering = m_deviceFeatures.vk13.dynamicRendering;
     358#endif
    348359
    349360    // We expose depth clip rather than depth clamp to client APIs
     
    383394      m_deviceFeatures.extMemoryPriority.memoryPriority;
    384395
     396#ifndef VBOX
    385397    // Require robustBufferAccess2 since we use the robustness alignment
    386398    // info in a number of places, and require null descriptor support
     
    389401    enabledFeatures.extRobustness2.robustImageAccess2 = m_deviceFeatures.extRobustness2.robustImageAccess2;
    390402    enabledFeatures.extRobustness2.nullDescriptor = VK_TRUE;
     403#else
     404    /* Not available with MoltenVK. */
     405    enabledFeatures.extRobustness2.robustBufferAccess2 = m_deviceFeatures.extRobustness2.robustBufferAccess2;
     406    enabledFeatures.extRobustness2.robustImageAccess2 = m_deviceFeatures.extRobustness2.robustImageAccess2;
     407    enabledFeatures.extRobustness2.nullDescriptor = m_deviceFeatures.extRobustness2.nullDescriptor;
     408#endif
    391409
    392410    // We use this to avoid decompressing SPIR-V shaders in some situations
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette