Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mvk): resumeLostDevice #4800

Merged
merged 1 commit into from
May 10, 2023
Merged

Commits on May 4, 2023

  1. fix(mvk): resumeLostDevice

    Command buffer errors currently trigger an exception "DeviceLost" crashing the process.
    
    Looking at [MKV's code](https://github.com/KhronosGroup/MoltenVK/blob/53a4eb26f2fbd7322eb087eb4af263fe466543b0/MoltenVK/MoltenVK/GPUObjects/MVKQueue.mm#L392-L408) we observe that:
    - It hard fails if error is:
      ```
       MTLCommandBufferErrorBlacklisted || MTLCommandBufferErrorNotPermitted || MTLCommandBufferErrorDeviceRemoved
       ```
    - Otherwise fails conditionally if `config.resumeLostDevice == false` (current default)
    
    For Ryujinx's use-case it's more graceful to resume on those errors rather than crashing the app, the error isn't totally silenced since `mvk` still logs it
    
    Fixes Ryujinx#4704, Ryujinx#4575
    AaronO committed May 4, 2023
    Configuration menu
    Copy the full SHA
    976faaa View commit details
    Browse the repository at this point in the history