Can't run my rust project which uses graphics in Debian based

I am currently runnign Peppermint. I created a project originally on Windows and it works fine, but moving to Debian I get issues:

    Finished dev [unoptimized + debuginfo] target(s) in 14.63s
     Running `target/debug/project`
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

I have verified I can run a simple hello world on Debian-based so this isn't an issue with cargo, I believe this has something to do with amd drivers.

Even on Linux Mint my project works fine so not too sure what appropriate drivers should I configure or what is going wrong. I am using egui as part of my project.

After running

lspci -nn | grep VGA

the output is:

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X] [1002:67b0]

This was the exact same output for Linux Mint as well

So yeah not too sure what I should do to configure it correctly to get my Rust project working properly?

If you have a graphics card with Vulkan support, then you probably just need to figure out how to install the drivers for that graphics card on your peppermint system.

If you don't have a graphics card with Vulkan support, then I think lavapipe might be a CPU implementation of vulkan, similar to mesa in concept ( I don't actually know if that's right ), and it's just warning you that it isn't fully compliant with the Vulkan spec, so not everything will render like it's supposed to.

Are you able to run vulkaninfo?

1 Like

Hey man, thanks for your help.

According to this guide

I figured it out in the end I have switch from raedeon to amdgpu drivers as that supports vulkan and not raedeon. I had to add this GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.cik_support=0 amdgpu.cik_support=1" into /etc/default/grub and then run sudo update-grub. Everythign works very well now.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.