Skip to main content
Topic: need help manually compiling vulkan driver (Read 587 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

need help manually compiling vulkan driver

Hi all.

Apologies in advance for an "I told you so" post.

Back in 2019 I installed Artix on my laptop (Asus FX505DY - AMD version) because I was disappointed in the trend toward universal systemd and I was already familiar with Arch. In typical fashion (for me), I made several hacks/adjustments to get everything working on my system and then failed to keep the system updated.

Now I've noticed that I do not have proper vulkan support installed. Pacman is out of the question since my system is so far out of date (I briefly tried to use the Arch Linux Archive but failed and gave up).

I'd like to install the "driver" portion of vulkan for this system (I'm using amdgpu), but I don't know where to start. Googling leads to a lot of confusion of the driver vs. the loader vs. the utilities. I can build the loader and utilities, but I am not sure what to do about the actual driver portion, without which the others won't work.

I am not worried about pulling code and building dependecies, etc...I just need a little bit of guidance. As a final note, I would prefer to compile what I need as opposed to upgrading the entire system (I always have problems and never have the time to fix them!).

Any help is appreciated! Thanks for your time.

Re: need help manually compiling vulkan driver

Reply #1
Well I would recommend updating your system first really. But anyways on AMDGPU you have two options for vulkan: radv or amdvlk. radv is a part of mesa so you could just compile mesa while amdvlk is separate. You will need vulkan-headers and vulkan-icd-loader after you get a driver.


Re: need help manually compiling vulkan driver

Reply #3
Pacman is out of the question since my system is so far out of date.
It really isn't.

Boring story
I have an Samsung Arm Chromebook. It had an old Arch Arm (Alarm) installation on it.
It's a known issue that after around kernel 5.10.16 the Alarm provided kernels stopped booting as did the images containing newer kernels. So I stopped updating the kernel long ago. I also stopped updating Arch around this time.
I only tend to use this Chromebook when going away and each time was loath to update anything whilst away in case I broke the installation and had no laptop while away. "I'll take a look when I get home". Never did
On my last trip away in May I was unfortunately pretty immobile and decided to investigate the kernel issue while stuck in the Airbnb. That was a success and after getting an at least working current kernel I even got a slightly older, but more specialized, kernel working with hardware video decoding and panfrost GPU drivers. But the main point is.....

Other than need to supply my own kernel the pacman update worked just fine. No problems whatsoever.

TLDR:
Update your system. You don't need any archives. Just a full system update. Worst comes to worst just do a fresh installation.
Trying to install new things on an old installation of a rolling distro is doomed to failure.

Edit:
Don't "Read the fine manual" as suggested with such eloquence. Update or reinstall


Re: need help manually compiling vulkan driver

Reply #5

Can you please show exactly where the TO can find 2019 packages or tarbals?
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: need help manually compiling vulkan driver

Reply #6
If you go to the Arch archive:
https://archive.archlinux.org/packages/v/vulkan-radeon/
you can just download a package in a browser and put it on a USB stick like e.g.:
vulkan-radeon-18.3.2-1-x86_64.pkg.tar.xz           18-Jan-2019 03:25    700K
And install it with
Code: [Select]
$ pacman -U vulkan-radeon-18.3.2-1-x86_64.pkg.tar.xz
You might need to get the right version to match your other packages, and perhaps install a matching Arch kernel and / or other related items.
vulkan-radeon (if that's what you want, substitute other package names as required) is a sub-package built by the mesa PKGBUILD.
Alternatively to build an old Artix version, try something like:
Code: [Select]
$ git clone "https://gitea.artixlinux.org/packages/mesa.git"
$ cd mesa
$ git log
$ git checkout (some commit hash at the date and version you found using git log)
Possibly that PKGBUILD at the version you want will work with makepkg but you might have to modify it or do some things manually using it as a guide, because the web address of source items could have changed and so on. I've built mesa before to add debug symbols and it built fairly quickly and easily, it's not some huge thing.



Re: need help manually compiling vulkan driver

Reply #9

This is already clear from the article I linked, so why are you writing it here again?
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

 

Re: need help manually compiling vulkan driver

Reply #10
It's called a discussion, lq, and there are some manuals you should study:
https://terms.archlinux.org/docs/code-of-conduct/
https://forums.debian.net/viewtopic.php?t=149781
While the Artix forum might not have such codified rules, you should get some general tips on helping people on forums, you can be quite negative and overly critical at times I think.  ;D