Elokuba
Hi, I followed your instructions and updated /etc/profile with the Vulkan and Mesa environment variables. I also downgraded both llvm-libs and lib32-llvm-libs to version 14.0.6.
But when I run vulkaninfo, I still get these errors:
$ vulkaninfo | grep device 1 ✘
ERROR: [Loader Message] Code 0 : libxml2.so.2: cannot open shared object file: No such file or directory
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON /usr/lib/libvulkan_radeon.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools/vulkaninfo/./vulkaninfo.h:573:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
$ glxinfo | grep "OpenGL version" 1|1 ✘
Error: couldn't find RGB GLX visual or fbconfig
Here is how my profile file looks:
$ cat /etc/profile 0|1 ✘
# /etc/profile
# Append "$1" to $PATH when not already in.
# This function API is accessible to scripts in /etc/profile.d
append_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
# Append our default paths
append_path '/usr/local/sbin'
append_path '/usr/local/bin'
append_path '/usr/bin'
# Force PATH to be environment
export PATH
#
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# unset GLOBSORT, before anything else is sourced
# This variable will be part of bash => 5.3
# The rationale is that the user should always be able
# to expect that the snippets be processed in a deterministic order.
unset -v GLOBSORT
# Unload our profile API functions
unset -f append_path
# Source global bash config, when interactive but not posix or sh mode
if test "$BASH" &&\
test "$PS1" &&\
test -z "$POSIXLY_CORRECT" &&\
test "${0#-}" != sh &&\
test -r /etc/bash.bashrc
then
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
# ----- PS4 Linux PATH Setup -----
if [ "$(id -u)" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
# ----- Vulkan + Mesa Compatibility (PS4) -----
export RADV_DEBUG=llvm
export MESA_GL_VERSION_OVERRIDE=4.6
export MESA_GLSL_VERSION_OVERRIDE=460
export AMD_DEBUG=extra_md
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json
export VK_LAYER_PATH=/usr/share/vulkan/explicit_layer.d
# ----- Shell Prompt Setup -----
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "$(id -u)" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
# ----- Source /etc/profile.d scripts if present -----
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. "$i"
fi
done
unset i
fi
$ ls -l /usr/lib/libxml2.so* ✔
lrwxrwxrwx 1 root root 13 Jul 15 12:44 /usr/lib/libxml2.so -> libxml2.so.16
lrwxrwxrwx 1 root root 17 Jul 15 12:44 /usr/lib/libxml2.so.16 -> libxml2.so.16.0.5
-rwxr-xr-x 1 root root 1297360 Jul 15 12:44 /usr/lib/libxml2.so.16.0.5
Errors I get in Lutris:
