-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix KMS with OpenGL. #7708
Fix KMS with OpenGL. #7708
Conversation
All credit for this patch goes to dtsarr. Fixes #7119
This commit breaks the build for me on ARM / S905X
|
Well that is unfortunate... What OS is running on this device? Can you please share the contents of Herre |
Yes. @orbea There really shouldn't be any GBM dependencies added to egl_common.c. It should be fairly decoupled so that egl_common.c won't have any GBM dependencies. Not sure how to fix it, from the logic that is being shown here, you deliberately look for a GBM_FORMAT_XRGB8888 format and if you can't find it, then it will just not attempt to setup EGL? Is there a more portable way of doing this? I'd imagine this wouldn't work on EGLStreams. I believe they faced a similar issue here - https://gitlab.gnome.org/mvicomoya/mutter/commit/54246c75f57ac889c0d433756f3ddf1b280d2dd5 |
I didn't make the patch only the PR, @dtsarr may know better. However this might be a bandaid even if the example you linked looks better...
|
Yeah, we can go with that for now. |
@twinaphex @orbea Your patch was a bit malformed but this one fix compiling for S905X -> building a test image now |
@natinusala Have you tried the band-aid patch above? Does it work? |
@natinusala Try if this works (I assume you are talking about Switch Lakka here) - |
All good |
Broke Wayland EGL #7721 |
@Sunderland93 can you fix this up without breaking the other targets? |
@twinaphex No, I have no idea how to resolve this |
@orbea I'd like to ask you to fix this then. It's pretty important that Wayland EGL continues to work. |
@twinaphex I didn't make this patch, @dtsarr did. I've never even used wayland before and unfortunately I'm not sure how to fix this either... |
@dtsarr Can you make sure EGL Wayland still works and send a patch for it? |
You guys need to come together here and figure out a solution of some sorts, a release is nearing soon and it would be very bad form if we fixed KMS for one particular usecase and broke it for say EGL Wayland. I might have to revert this completely for now if you guys can't work together to come up with some kind of collaborative solution unfortunately. I really don't want to have to do that, so please work with me here to ensure we have a nice good release prepared before Christmas. |
Isn't there anyone involved in this project anymore with knowledge of EGL or wayland that can help? A naive guess at a solution would be to find what EGL format wayland wants and then give it that format under a wayland context while keeping the current format otherwise. I tried researching the first step, but my lack of knowledge on wayland made finding these details less than fruitful with a search engine. Its unfortunate it turned out like this, but what do you expect when no one knowledgeable enough actually reviews the code? ... Of course it seems the only way to get testing done here is to merge first and hope for the best. :\ Edit: Just to clarify, I am not blaming anyone, just I wish there was a better way? |
@orbea I'm asking around right now. There might be a solution coming. |
Thank you! I really appreciate the help rectifying this issue. :) |
I have just merged a PR by @Themaister. I ask the people in this thread to please test again and see if everything works now for them. |
KMS still works here with both OpenGL and Vulkan, we'll have to wait for wayland users to test if its fixed there too. @Themaister thank you very much for your help! |
I tested EGL Wayland myself as well as DRM, works for me (tm). |
@Sunderland93 still seems to be having problems with wayland and gnome3 here. Maybe its specific to gnome though? |
Same in rootston, mir and weston |
Upd. Fixed after update my distro :) |
Description
Fixes KMS with OpenGL.
All credit for this patch goes to @dtsarr.
Related Issues
Fixes #7119