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
macOS ARM (macos-14) has rendering issues with lines and texture when using OpenGL #9712
Comments
Hello @mwestphal, we will take a look what we can do about it. |
Thanks! Please let me know if I can help or test anything on my side. |
I ran some tests in an UTM VM with a macOS-14 guest on a macOS-13 host, and I see similar issues, so this might be an upstream OpenGL issue. The GL version is the same as on the GitHub macos-14 runner:
|
I also managed to reproduce this in an UTM VM with macOS-13.6.6 on a macOS-13 host:
This is the same OS version and renderer version as used on GitHub's The red thread seems to be that Apple's software renderer on arm64 has issues. It not clear if it's possible to fix this through VM configuration or not. |
..and finally: Running the Apple Software Renderer directly on a macOS-13 M1 host also fails:
This last piece of info takes the VM out of the equation. |
So that means this is not fixable because it is a bug in the software rendering stack on macos ? |
There may still exist workarounds. I haven't experimented with GL context settings to see if the bug only manifests through certain pixel format configurations. I also haven't tried any newer (if they exist) renderers than I can only reproduce this bug in relatively complex scenarios. We have more than 1500 tests, and only 41 of them fail, so there may be some specific GL usage which triggers this issue, and it might be possible to avoid that GL usage by rewriting code (or using slightly different code for testing on macOS). If you manage to reproduce this with a minimal example, that could be interesting to look into more closely and/or find some paying Apple developer who can engage with Apple on the topic. |
Description
I'm the co-creator of F3D, a fast an minimalist cross platform 3D viewer.
We have been supporting macOS ARM using cross-compilation for a while but we recently switched to using macos-14 runner instead.
So far it has been behaving great we do have one issue that seems to be caused by the runner images themselves.
Indeed, we struggle to render certain specific part of our models, it very much looks like a driver bug in the OpenGL stack.
We do not reproduce on any actual macOS ARM, these issues are specific to macos-14 ARM images on github.
Platforms affected
Runner images affected
Image version and build link
20240415.6
Is it regression?
No
Expected behavior
Correct rendering like this:
Actual behavior
Are you can see, certain lines and texture are incorrectly rendered.
Repro steps
Create a PR on F3D but in
.github/actions/generic-ci/action.yml:210
, remove the-E
ctest argument to run all the tests instead of excluding the one that do not render correctly.The text was updated successfully, but these errors were encountered: