We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5376 - Corrupted background color in fullscreen Metal on Big Sur
Summary: Corrupted background color in fullscreen Metal on Big Sur
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.12
Hardware: x86 Other
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2020-12-02 03:13 UTC by Cameron Gutman
Modified: 2020-12-09 14:26 UTC (History)
0 users

See Also:


Attachments
Expected output (OpenGL) (212.57 KB, image/png)
2020-12-02 03:14 UTC, Cameron Gutman
Details
Broken output (Metal) (534.59 KB, image/png)
2020-12-02 03:14 UTC, Cameron Gutman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Gutman 2020-12-02 03:13:34 UTC
When running on Big Sur using Metal, I see areas in my app that should be solid black (cleared and never drawn) showing up as an odd striped red and black color. I haven't the slightest clue what is happening, but I was able to reproduce it with one of the SDL test apps.

It seems to be new to Big Sur and doesn't happen on Catalina. SDL 2.0.12 and SDL Hg (8d5e22789f3f) are both impacted.

The following invocations all reproduce the bug:
./testsprite2 --fullscreen-desktop
./testsprite2 --fullscreen

The following invocations do NOT reproduce the bug:
./testsprite2
./testsprite2 --fullscreen-desktop --renderer opengl
./testsprite2 --fullscreen --renderer opengl

In case it matters, I'm running:
MacBook Pro (13-inch, 2020, 4 Thunderbolt Ports)
2.3 GHz Intel Core i7 (Ice Lake)
Intel Iris Plus Graphics
macOS Big Sur 11.0.1
Xcode 12.2
Comment 1 Cameron Gutman 2020-12-02 03:14:20 UTC
Created attachment 4552 [details]
Expected output (OpenGL)
Comment 2 Cameron Gutman 2020-12-02 03:14:54 UTC
Created attachment 4553 [details]
Broken output (Metal)
Comment 3 Sam Lantinga 2020-12-09 14:26:40 UTC
Ryan, can you look at this for the SDL release? Do you have hardware for testing?