-
Notifications
You must be signed in to change notification settings - Fork 177
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
Hardware cursor is broken after mesa upgrade to 24.2.0 from 24.1.6 #2492
Comments
Haven't looked very deeply into the hyprland issue but hw cursors are managed pretty much entirely in wlroots, there isn't much we can do about them. I would try the PR for wlroots 0.18 support in Wayfire, if the issue is present in wlroots 0.18, then open an issue on the wlroots bug tracker. |
Thank you for your quick response. I will try to add the DRM_FORMAT_MOD_INVALID modifier to the cursor based on the Hyprland patch. |
I wrote the following patch, which fixes this issue. diff --git a/render/allocator/gbm.c b/render/allocator/gbm.c
index da035c668..056c99ca6 100644
--- a/render/allocator/gbm.c
+++ b/render/allocator/gbm.c
@@ -113,7 +113,15 @@ static struct wlr_gbm_buffer *create_buffer(struct wlr_gbm_allocator *alloc,
errno = 0;
bo = gbm_bo_create(gbm_device, width, height, format->format, usage);
has_modifier = false;
+ } else {
+ uint64_t modifier = gbm_bo_get_modifier(bo);
+ if (format->len == 1 &&
+ format->modifiers[0] == DRM_FORMAT_MOD_LINEAR && modifier == DRM_FORMAT_MOD_INVALID) {
+ fallback_modifier = DRM_FORMAT_MOD_LINEAR;
+ has_modifier = false;
+ }
}
+
if (bo == NULL) {
wlr_log_errno(WLR_ERROR, "gbm_bo_create failed");
return NULL;
|
The upstream issue still exists, so it's better to reopen it and close it after the upstream issue is fixed. |
Does it make a difference if you try running wayfire with |
The issue is still there
Adding this environment variable did not fix the issue. |
It seems this is an issue that can be fixed in either wlroots or mesa, but not wayfire. I would recommend filing a report with wlroots and/or mesa. |
Okay, I will file a report for wlroots. |
Here is the report sent to wlroots. |
I think you mean: |
Describe the bug
My graphics card is an AMD RX580. After upgrading Mesa from version 24.1.6 to 24.2.0, the hardware cursor broke, and Wayfire started using the software cursor.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Wayfire version
0.8.1.r320.g7dfe9149-1
Related issues:
hyprwm/Hyprland#7577
https://gitlab.freedesktop.org/mesa/mesa/-/issues/11817
hyprwm/aquamarine#71
The text was updated successfully, but these errors were encountered: