-
Notifications
You must be signed in to change notification settings - Fork 54
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
Graphical glitches with most GTK/Qt applications on Intel iGPU #68
Comments
Thanks for providing the picture. Can you confirm whether or not the issue is exclusively with applications running over xwayland, or does it happen with others as well (i.e. gtk with native wayland, It looks a lot like the applications are rendering with a different tiling mode than is being used to present them. It could have something to do with drm format modifiers, which are used to communicate the tiling mode of buffers, and weren't around when swc and wld were initially written. Can you try the following things to help me understand what's going on:
It would also be useful if you could grab wayland protocol logs from applications that do not render correctly (i.e. run them with |
I was able to get MultiMC, urxvt, kitty, screengrab (doesn't work because X only I think) to work. |
It appears my title was misleading, in any case. |
I have recompiled swc without dmabuf support. It doesn't seem to affect anything- |
After testing Velox on a Nvidia system with Nouveau, it seems to work. |
WLD_DRM_DUMB causes some pretty terrible performance with games. |
Well of course. As I mentioned earlier, this forces On my system with intel graphics, I run only wld-based applications, which seem to work. I suspect the problem is somehow a drm tiling mode miscommunication, either between mesa and wld, or something to do with Xwayland. I will try to do some testing some time this week to see if I can reproduce the issue. It could also be related to the intel GPU revision you are using.
I suspect this forces Qt to connect with wayland natively rather than using Xwayland.
It'd be helpful if you could clarify what protocols and rendering methods these applications are using rather than listing the applications themselves. It makes a big difference whether it is using wld or mesa or |
Sorry for not getting back to this sooner- I'm not very familiar with Wayland from a technical level but I do have a vague understanding of it. How would I find out such info (and some Wayland compositor programming resources would also be helpful)? |
I think the issue is that mesa is using the Y tiling mode, and wld currently only supports X tiling. I pushed a temporary fix to the intel-tiling branch of swc. That commit advertises only linear and X tiling modes over linux-dmabuf. Can you check whether this fixes the issue for you? A proper fix is probably to either add support for Y-tiled buffers to wld's intel driver (I think this involves setting BCS_SWCTRL), or adding a function to wld to get a list of supported format modifiers.
You can get a wayland protocol log by running the application with |
So I tried the fix, and it didn't have any effect. I think I may have mentioned this earlier, but it is an X applications (xterm, rxvt, MultiMC, Chromium on XWayland) problem. |
I was having the same glitch issue with an intel graphics card, but using the intel-tiling branch and recompiling velox actually fixed the glitches for me. |
Most GTK and Qt applications have graphical issues. I opened MultiMC, Badwolf with JS enabled, KeepassXC, and ScreenGrab in Velox and none of these applications displayed anything correctly. I'm a new Velox user and I am not sure if this is a bug in Velox or in
swc
itself. I'd really like to use Velox as my main window manager, at least on my non-Nvidia computer, but as long as this bug persists this will be impossible. Note- I am on a laptop with an Intel integrated graphics card.I have also been testing various terminals. While the Wayland fork of st works pretty well, other terminal emulators have similar graphical errors (kitty, xterm, urxvt). I'm fairly certain that none of these have Wayland backends, so it might be an issue with
xorg-xwayland
? If I remember correctlyswc
still has XWayland support.Maybe this has nothing to do with XWayland and more to do with the fact that Velox forces everything to open in tiled mode. However, on vanilla
dwm
everything works pretty smoothly.Picture included for reference:
The text was updated successfully, but these errors were encountered: