-
Notifications
You must be signed in to change notification settings - Fork 213
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
Compiling with O3 on Clang causes blurriness on Wayland #1493
Comments
Nice find, the issue happens on the drm backend as well. Hadn't gotten around to investigating for myself why it happened yet ublue-os/bazzite#1539 but it's also fixed by switching to gcc rather than clang. |
Screen blurring when composition may be something else? Does it happen if native res..? Thanks for the report about this one though. |
You're right, different issue it seems since it only starts to happen with composition. However the fix was the same, switching to GCC, as reported by stereophonick. I'll try to verify on my Deck later. |
its two separate issues I also see this specific issue with the Wayland backend, pretty apparent in Dota 2 + Deadlock's settings menus for me: command: from git with revert of 7fe73df: kind of like going to the eye doctor... my clang.ini
|
@Exotic0015 @matte-schwartz
|
@Joshua-Ashton
Then it could be that either a) rare case of scary compiler bug in clang/llvm OR b) gcc is more forgiving w/ -O3 + -ffast-math than clang I did a mini-test of the ceil behavior for gcc vs clang on godbolt https://godbolt.org/z/vh8TTjzfz and it definitely showed that clang and gcc have very different optimization behavior (tho more similar when targeting native cpu). Though nothing definitive especially when this is without linking & whatnot might need to reach out to llvm project on github if we can't figure this out... |
I used https://github.com/GrammaTech/ddisasm for disassembling versions of gamescope with and without commit 7fe73df reverted Here's the dissaseembly with the commit reverted: and without the commit reverted: This is making my head hurt... 0_o |
did some investigating this evening and the problem seems to be |
Compiling a release build or with -O3 using Clang causes output image to be blurry. I've narrowed it down to commit 7fe73df, without it everything looks as it should. Below are comparison screenshots, though the difference may be too subtle to notice.
With 7fe73df:
Without 7fe73df:
Both instances were built using the same compile options.
The text was updated successfully, but these errors were encountered: