Project

General

Profile

Emulator Issues #12663

Line width does not work unless geometry shaders are supported

Added by Mrnoname1000 3 months ago. Updated 3 months ago.

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

0%

Operating system:
N/A
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?

Super Mario Sunshine

Game ID? (right click the game in the game list, Properties, Info tab)

GMSE01

MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)

0c6d2edae9fdf40dfc410ff1623e4119

What's the problem? Describe what went wrong.

When using Vulkan, two issues occur. At 2x or greater internal resolutions, the screen transitions look like a bunch of lines (see the first two screenshots). At all resolutions, the paint portals in Delphino Plaza have black squares behind them.

These issues don't occur with OpenGL or the software renderer. I'm not sure if these issues occur on X86 Macs, but they don't occur on my Linux laptop with Vulkan.

What steps will reproduce the problem?

Start Super Mario Sunshine with the Vulkan backend. Run at 2x or greater resolution for bad screen transitions, have at least one world unlocked for the black squares.

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, 5.0-15132. I also checked 5.0-14295 and 5.0-9178, both had the same issues (5.0-9178 being X64 only didn't change anything).

Is the issue present in the latest stable version?

The game crashed when running in 5.0.

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.)

5.0-9178, versions before that don't support Vulkan on MacOS.

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

Transition.dff is during the transition pictured in framedump_430.png, Portal.dff is of the portal in framedump_2120.png.

What are your PC specifications? (CPU, GPU, Operating System, more)

MacOS Big Sur 11.5.2
2020 Apple M1 Mac Mini

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

[Anything else here]

framedump_574.png (987 KB) framedump_574.png Mrnoname1000, 09/13/2021 06:55 AM
framedump_430.png (1.54 MB) framedump_430.png Mrnoname1000, 09/13/2021 06:55 AM
framedump_1561.png (371 KB) framedump_1561.png Mrnoname1000, 09/13/2021 06:55 AM
framedump_2120.png (468 KB) framedump_2120.png Mrnoname1000, 09/13/2021 06:55 AM
framedump_2307.png (369 KB) framedump_2307.png Mrnoname1000, 09/13/2021 06:55 AM
fifo.7z (1.68 MB) fifo.7z Mrnoname1000, 09/13/2021 06:57 AM
8617
8618
8619
8620
8621

History

#1 Updated by MayImilae 3 months ago

So the loading screen wipes as lines is because metal doesn't support line-width (see issue 6139), resulting in the lines having default width. Apparently moltenvk still does not emulate line-width, so, that bug is there. Not sure about the level portals though.

Also not sure if this should be accepted or not as it isn't exactly a Dolphin bug.

#2 Updated by JosJuice 3 months ago

It should be accepted in my opinion. What Metal doesn't support is geometry shaders, which we use for emulating line width, but it should be possible to emulate line width without using geometry shaders.

The level portal might be a different issue. I haven't seen anything exactly like it before.

#3 Updated by OatmealDome 3 months ago

The level portal black box is caused by a Apple Silicon driver bug. #12523 is caused by the exact same bug.

I have a fix ready to PR'd, but it depends on https://github.com/dolphin-emu/dolphin/pull/9981, so the Intel buildbot needs to be shut down first.

#4 Updated by JosJuice 3 months ago

  • Subject changed from Graphical issues with Vulkan on M1 Mac Mini to Line width does not work unless geometry shaders are supported

I will let this issue track line width and the other issue track the portal problem.

Also available in: Atom PDF