Skip to content
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

Vulkan compatibility broken in Lakka-v6.x #2033

Open
shakkalakka opened this issue Feb 10, 2025 · 15 comments
Open

Vulkan compatibility broken in Lakka-v6.x #2033

shakkalakka opened this issue Feb 10, 2025 · 15 comments
Assignees

Comments

@shakkalakka
Copy link

shakkalakka commented Feb 10, 2025

hi, after updating from Lakka 5.x i cannot use vulkan driver anymore. It just crashes. My System is x64 with Intel i7 7700 and integrated graphics.

i use this image: Lakka-Generic.x86_64-6.x-20250207-0af7dae.img.gz

@Ntemis Ntemis self-assigned this Feb 10, 2025
@Ntemis
Copy link
Collaborator

Ntemis commented Feb 10, 2025

Same here i need some logs to see what going on

@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 10, 2025

use gl/glcore.

@ToKe79 ToKe79 closed this as completed Feb 10, 2025
@barbudreadmon
Copy link

use gl/glcore.

Why was this issue closed after that answer ? Is lakka dropping support for vulkan ?

@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 11, 2025

no, vulkan is still included, but not all GPUs support all vulkan extensions, in such case you should use gl/glcore.

@barbudreadmon
Copy link

For hardware-rendered cores compatible with both, vulkan far outperforms opengl, hence why it's strongly recommended to use it when available.

Here, it seems like something that has nothing to do with cores and actual emulation entirely broke vulkan support for a whole range of gpus. This feels kind of messed up.

@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 11, 2025

This is a report from a single GPU - iGPU Intel HD 630. As per Intel these iGPUs support Vulkan 1.2, but not Vulkan 1.3.

https://www.intel.com/content/www/us/en/support/articles/000005524/graphics.html#primary-content

Current MESA implements Vulkan 1.3, which would mean we would have to downgrade MESA, what is not planned.

You are free to correct me and submit a fix.

@barbudreadmon
Copy link

So vulkan 1.3 support is required for frontend/os logic while the emulators actually don't require it.

As a core dev, i remember being asked around 2020 to lower a core's opengl requirement which was deemed too high (4.3 released in 2012), because retrocompatibility was important. I have very mixed feelings when reading that a vulkan version from 2022 is now required for anything vulkan.

@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 11, 2025

Guys, I don't know what you want me to tell you. I think this must be addressed in the upstream project (MESA?), not in Lakka. We can't use "outdated" package for the sake of users with older hardware and at the same time hinder the usage for user with newer hardware.

In my opinion Lakka did not break the compatibility for the hardware.

I might be wrong, but none of the couple Lakka developers/maintainers has the means to test all kinds of GPUs and seek for patches that fix the incompatibility issue. Maybe the issue is on Lakka side and some package is built with some missing/incorrect flag.

I will rename this issue (make it more general) and leave the issue open, so others having similar issue can contribute their experience.

@ToKe79 ToKe79 reopened this Feb 11, 2025
@ToKe79 ToKe79 changed the title Lakka v6.x vulkan video driver did not work at all (Intel iGPU HD 630) Vulkan compatibility broken in Lakka-v6.x Feb 11, 2025
@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 11, 2025

As a core dev, i remember being asked around 2020 to lower a core's opengl requirement which was deemed too high (4.3 released in 2012), because retrocompatibility was important.

I don't know the details, but keep in mind that RetroArch runs natively on devices like PSP, older MacOS, PS2, ... where the support for newer OpenGL version might not be available, therefore the minimum requirement for the core could be set lower for that reason.

@gouchi
Copy link
Member

gouchi commented Feb 14, 2025

@shakkalakka Thank you for reporting this issue. In order to make progress towards solving this problem as Ntemis requested, please provide some log so that we can make a diag.

You only need to run createlog.

Moreover, please rename the issue title to something Vulkan is not working in Lakka 6.x with Intel HD 630.

Thank you.

@ShigeakiAsai
Copy link
Contributor

This Generic-x86_64-log-2025-02-15-01.07.26.zip file is logfile by createlog.

Lakka image : Lakka-Generic.x86_64-6.x-20250207-0af7dae.img.gz
My PC : ASRock N100DC-ITX
Boot from LIVE USB

Thanks
ASAI, Shigeaki

@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 23, 2025

@shakkalakka may I kindly ask you to verify that vulkan works with your iGPU with image from here: https://nightly.builds.lakka.tv/members/vudiq/mesa-24.1.0/

I have success with RPi4, RPi5 and AMD iGPU. With Intel iGPU I have only one older laptop/chromebook, and vulkan does not work there even with Lakka 5.x. But since Lakka 5.0 works for you, maybe the above image will too. Thank you!

@ToKe79
Copy link
Collaborator

ToKe79 commented Feb 23, 2025

And maybe also image from here: https://nightly.builds.lakka.tv/members/vudiq/devel-mesa25-test/
RPi4 vulkan works, RPi5 vulkan does not work, Generic vulkan works with AMD iGPU.

@shakkalakka
Copy link
Author

Sure, but it will take some days. There is also an annoying hard freeze Bug at closing content with flycast, lrps2, scummvm and other cores with v.5.x and later. This might prevent me using newer Versions of lakka anyway (stable 5.0 was last that worked for me) but i definitly will try the Images you postet and give a Report.

@ShigeakiAsai
Copy link
Contributor

I also tested about https://nightly.builds.lakka.tv/members/vudiq/mesa-24.1.0/

My result:

  • Generic.x86_64 : OK, retroarch is started with vulkan
    (Lakka-Generic.x86_64-6.0-devel-20250222143258-1d71d11.img.gz)
    Intel N100 - Intel® UHD Graphics (Integrated) GPU
    Intel Core i3 12100T - AMD Radeon RX 6400 GPU
  • RPi4.aarch64 : OK, retroarch is started with vulkan
    (Lakka-RPi4.aarch64-6.0-devel-20250222143455-1d71d11.img.gz)
    Raspberry pi 4 (4GB RAM)
  • RPi5.aarch64 : OK, retroarch is started with vulkan
    (Lakka-RPi5.aarch64-6.0-devel-20250222143559-1d71d11.img.gz)
    Raspberry pi 5 (8GB RAM)
    Raspberry pi 5 (2GB RAM) D0 stepping

Thanks
ASAI, Shigeaki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants