Emulator Issues #10521
Vulkan with Hybrid Ubershaders: "Failed to submit command buffer" in any game (likely Polaris)
Game ID? (right click the game in the game list, properties, info tab)
MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)
What's the problem? Describe what went wrong.
Playing any game with Vulkan and Hybrid Ubershaders will receive a "Failed to submit command buffer" which causes Dolphin to crash.
What steps will reproduce the problem?
- Own a Polaris card
- Delete shader cache
- Set backend to Vulkan
- Turn on Hybrid Ubershaders
- Play a game
- Wait for the error
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
Is the issue present in the latest stable version?
No (Ubershaders not available there)
If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
First implementation of Ubershaders
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
3 frames doesn't seem to do it, I was able to cause it to occur with a much larger "choose the galaxy" fifo on SuperMarioGalaxy.
What are your PC specifications? (CPU, GPU, Operating System, more)
Rx480 AMD (latest drivers but also occurs on older ones)
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
Originally thought it might be related to pipelines not properly copying primitve restart settings (Polaris failing on primite restarts was what caused #9879) but Stenzek and I caught that during the code review and it didn't fix the issue.
It doesn't occur when set to "Exclusive" mode. Nor does it happen when set to "Disabled". Therefore I do not believe it is shader related.
I have a series of fifos with the mario galaxy "choose a galaxy" (caused the original issue on polaris). If I play the single frame fifo, and then play the larger fifos, the error will not occur. However, if I delete my cache and play the large fifo, I get the error every time.