Project

General

Profile

Emulator Issues #10521

Vulkan with Hybrid Ubershaders: "Failed to submit command buffer" in any game (likely Polaris)

Added by iwubcode over 2 years ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

Any

Game ID? (right click the game in the game list, properties, info tab)

N/A

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

N/A

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?

  1. Own a Polaris card
  2. Delete shader cache
  3. Set backend to Vulkan
  4. Turn on Hybrid Ubershaders
  5. Play a game
  6. 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.

Yes

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)

6700k
Rx480 AMD (latest drivers but also occurs on older ones)
Windows 10
16gb Ram

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.


Related issues

Has duplicate Emulator - Emulator Issues #10729: Failed To Submit Command Buffer Error ReturnsDuplicate

History

#1 Updated by mathieui over 2 years ago

  • Operating system Windows added
  • Operating system deleted (N/A)

#2 Updated by shatteredlites over 2 years ago

This bug has returned
Using Dolphin 5.0-6074

CPU Type
Intel i5-6402P
RX 480 4GB
Radeon Software Version
17.12.1
Windows 10
8GB Ram

#3 Updated by shatteredlites over 2 years ago

Updated to Radeon Software Version 17.12.2

Issue still present

#4 Updated by Stenzek over 2 years ago

#5 Updated by iwubcode over 2 years ago

This issue seems to be fixed with the following PR: https://github.com/dolphin-emu/dolphin/pull/6399

(I'm not on the latest drivers for what it's worth; I'll update and test again)

#6 Updated by JMC4789 over 1 year ago

  • Status changed from New to Fixed

Supposedly fixed, no response

Also available in: Atom PDF