Created
March 3, 2024 12:18
-
-
Save dpanter/60489d29722b777db4fc7405e13fd03d to your computer and use it in GitHub Desktop.
vulkanreport.sh - Easily run vulkancapsviewer with AMD GPU (RADV ACO/RADV LLVM/AMDVLK/AMDGPU-PRO)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# vulkanreport.sh | |
# Easily run vulkancapsviewer with AMD GPU (RADV ACO/RADV LLVM/AMDVLK/AMDGPU-PRO) | |
# Created 2024-03-01 | |
# Written for Siduction (Debian sid based distro) | |
# By dpanter https://gist.github.com/dpanter | |
# Requires an executable vulkancapsviewer appimage, download from https://vulkan.gpuinfo.org/ | |
# Also assumes the system has icds in the usual locations | |
# workaround for buggy binary not handling Qt wayland properly | |
export QT_QPA_PLATFORM=xcb | |
# define vulkan layers/options | |
RADVACO= | |
RADVLLVM='RADV_DEBUG=llvm' | |
AMDVLK='VK_ICD_FILENAMES=/etc/vulkan/icd.d/amd_icd64.json' | |
AMDGPUPRO='VK_ICD_FILENAMES=/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json' | |
# if no options given, print this message and quit | |
if [ -z "$1" ]; then | |
echo "Easily run vulkancapsviewer with AMD GPU (RADV ACO/RADV LLVM/AMDVLK/AMDGPU-PRO)" | |
echo "Usage: `basename $0` <vulkancapsviewer appimage>" | |
exit 1 | |
fi | |
# run vulkancapsviewer with the various drivers, one at a time, continue when application exits | |
read -p "Press any key to run $1 with RADV ACO (default) ..." -n1 -s | |
./$1 | |
read -p "Press any key to run $1 with RADV LLVM ..." -n1 -s | |
RADV_DEBUG=llvm ./$1 | |
# this section not needed, application checks for AMDVLK by default | |
#read -p "Press any key to run $1 with AMDVLK" -n1 -s | |
#VK_ICD_FILENAMES=/etc/vulkan/icd.d/amd_icd64.json ./$1 | |
read -p "Press any key to run $1 with AMDGPU-PRO ..." -n1 -s | |
VK_ICD_FILENAMES=/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json ./$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment