From b2520ca5af1370029d3c81eb6417995aaa04881e Mon Sep 17 00:00:00 2001 From: Ward Date: Thu, 23 Feb 2023 22:04:12 +0200 Subject: [PATCH] first commit --- orig.source.txt | 1 + pika-amdgpu-switcher/Makefile | 6 +++ pika-amdgpu-switcher/debian/changelog | 5 ++ pika-amdgpu-switcher/debian/control | 17 ++++++ pika-amdgpu-switcher/debian/rules | 3 ++ pika-amdgpu-switcher/debian/source/format | 1 + pika-amdgpu-switcher/usr/bin/cl_pro | 20 +++++++ pika-amdgpu-switcher/usr/bin/gl_mesa | 36 +++++++++++++ pika-amdgpu-switcher/usr/bin/gl_pro | 36 +++++++++++++ pika-amdgpu-switcher/usr/bin/gl_zink | 36 +++++++++++++ pika-amdgpu-switcher/usr/bin/vk_amdvlk | 52 +++++++++++++++++++ pika-amdgpu-switcher/usr/bin/vk_legacy | 52 +++++++++++++++++++ pika-amdgpu-switcher/usr/bin/vk_pro | 52 +++++++++++++++++++ pika-amdgpu-switcher/usr/bin/vk_radv | 52 +++++++++++++++++++ .../share/bash-completion/completions/cl_pro | 1 + .../share/bash-completion/completions/gl_mesa | 3 ++ .../share/bash-completion/completions/gl_pro | 3 ++ .../share/bash-completion/completions/gl_zink | 3 ++ .../bash-completion/completions/vk_amdvlk | 4 ++ .../bash-completion/completions/vk_legacy | 4 ++ .../share/bash-completion/completions/vk_pro | 4 ++ .../share/bash-completion/completions/vk_radv | 4 ++ 22 files changed, 395 insertions(+) create mode 100644 orig.source.txt create mode 100644 pika-amdgpu-switcher/Makefile create mode 100644 pika-amdgpu-switcher/debian/changelog create mode 100644 pika-amdgpu-switcher/debian/control create mode 100755 pika-amdgpu-switcher/debian/rules create mode 100644 pika-amdgpu-switcher/debian/source/format create mode 100755 pika-amdgpu-switcher/usr/bin/cl_pro create mode 100755 pika-amdgpu-switcher/usr/bin/gl_mesa create mode 100755 pika-amdgpu-switcher/usr/bin/gl_pro create mode 100755 pika-amdgpu-switcher/usr/bin/gl_zink create mode 100755 pika-amdgpu-switcher/usr/bin/vk_amdvlk create mode 100755 pika-amdgpu-switcher/usr/bin/vk_legacy create mode 100755 pika-amdgpu-switcher/usr/bin/vk_pro create mode 100755 pika-amdgpu-switcher/usr/bin/vk_radv create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/cl_pro create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_mesa create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_pro create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_zink create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_amdvlk create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_legacy create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_pro create mode 100644 pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_radv diff --git a/orig.source.txt b/orig.source.txt new file mode 100644 index 0000000..ca94e91 --- /dev/null +++ b/orig.source.txt @@ -0,0 +1 @@ +Source is this git's root diff --git a/pika-amdgpu-switcher/Makefile b/pika-amdgpu-switcher/Makefile new file mode 100644 index 0000000..1073242 --- /dev/null +++ b/pika-amdgpu-switcher/Makefile @@ -0,0 +1,6 @@ +all: + true + +install: + install -d $(DESTDIR)/ + cp -r usr $(DESTDIR)/ diff --git a/pika-amdgpu-switcher/debian/changelog b/pika-amdgpu-switcher/debian/changelog new file mode 100644 index 0000000..d2606d5 --- /dev/null +++ b/pika-amdgpu-switcher/debian/changelog @@ -0,0 +1,5 @@ +pika-amdgpu-switcher (1.0-99pika1) kinetic; urgency=low + + * Initial Creation + + -- Ward Nakchbandi Sun, 09 Oct 2022 18:34:00 +0300 diff --git a/pika-amdgpu-switcher/debian/control b/pika-amdgpu-switcher/debian/control new file mode 100644 index 0000000..1c2cd47 --- /dev/null +++ b/pika-amdgpu-switcher/debian/control @@ -0,0 +1,17 @@ +Source: pika-amdgpu-switcher +Section: misc +Priority: optional +Maintainer: Ward Nakchbandi +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.6.1 +Homepage: https://pikaproject.org/ + +Package: pika-amdgpu-switcher +Section: misc +Architecture: all +Provides: amdgpu-vulkan-switcher, amdgpu-opengl-switcher, amdgpu-opencl-switcher +Depends: ${misc:Depends} +Description: Prefix Scripts to choose the driver for OpenGL, OpenCL, and Vulkan on amdgpus. + + + diff --git a/pika-amdgpu-switcher/debian/rules b/pika-amdgpu-switcher/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/pika-amdgpu-switcher/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ diff --git a/pika-amdgpu-switcher/debian/source/format b/pika-amdgpu-switcher/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/pika-amdgpu-switcher/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/pika-amdgpu-switcher/usr/bin/cl_pro b/pika-amdgpu-switcher/usr/bin/cl_pro new file mode 100755 index 0000000..e9225b0 --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/cl_pro @@ -0,0 +1,20 @@ +#!/usr/bin/bash + +# This script applies amdocl-pro OpenGL driver for specific application. +# You can test the difference with clinfo utility. +# + + +cl_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:/opt/amdgpu-pro/lib/x86_64-linux-gnu:/opt/amdgpu-pro/lib/i386-linux-gnu:${LD_LIBRARY_PATH}" +} + +if [[ $(basename $0) == cl_pro ]]; then + cl_pro +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/gl_mesa b/pika-amdgpu-switcher/usr/bin/gl_mesa new file mode 100755 index 0000000..f0f8dcd --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/gl_mesa @@ -0,0 +1,36 @@ +#!/usr/bin/bash + +# This script applies amdogl-pro/zink/mesa OpenGL driver for specific application. +# You can test the difference (GL_VENDOR, GL_RENDERER, GL_VERSION) with glmark2 utility. +# +# Usage: +# +# For example: +# $ gl_pro davinci-resolve +# This will start davinci resolve with AMDGPU PRO OpenGL driver. + +gl_mesa() { + export __GLX_VENDOR_LIBRARY_NAME=mesa +} + +gl_zink() { + export __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink +} + +gl_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:/opt/amdgpu-pro/lib/x86_64-linux-gnu:/opt/amdgpu-pro/lib/i386-linux-gnu:${LD_LIBRARY_PATH}" +} + +if [[ $(basename $0) == gl_mesa ]]; then + gl_mesa +elif [[ $(basename $0) == gl_zink ]]; then + gl_zink +elif [[ $(basename $0) == gl_pro ]]; then + gl_pro +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/gl_pro b/pika-amdgpu-switcher/usr/bin/gl_pro new file mode 100755 index 0000000..f0f8dcd --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/gl_pro @@ -0,0 +1,36 @@ +#!/usr/bin/bash + +# This script applies amdogl-pro/zink/mesa OpenGL driver for specific application. +# You can test the difference (GL_VENDOR, GL_RENDERER, GL_VERSION) with glmark2 utility. +# +# Usage: +# +# For example: +# $ gl_pro davinci-resolve +# This will start davinci resolve with AMDGPU PRO OpenGL driver. + +gl_mesa() { + export __GLX_VENDOR_LIBRARY_NAME=mesa +} + +gl_zink() { + export __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink +} + +gl_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:/opt/amdgpu-pro/lib/x86_64-linux-gnu:/opt/amdgpu-pro/lib/i386-linux-gnu:${LD_LIBRARY_PATH}" +} + +if [[ $(basename $0) == gl_mesa ]]; then + gl_mesa +elif [[ $(basename $0) == gl_zink ]]; then + gl_zink +elif [[ $(basename $0) == gl_pro ]]; then + gl_pro +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/gl_zink b/pika-amdgpu-switcher/usr/bin/gl_zink new file mode 100755 index 0000000..f0f8dcd --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/gl_zink @@ -0,0 +1,36 @@ +#!/usr/bin/bash + +# This script applies amdogl-pro/zink/mesa OpenGL driver for specific application. +# You can test the difference (GL_VENDOR, GL_RENDERER, GL_VERSION) with glmark2 utility. +# +# Usage: +# +# For example: +# $ gl_pro davinci-resolve +# This will start davinci resolve with AMDGPU PRO OpenGL driver. + +gl_mesa() { + export __GLX_VENDOR_LIBRARY_NAME=mesa +} + +gl_zink() { + export __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink +} + +gl_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:/opt/amdgpu-pro/lib/x86_64-linux-gnu:/opt/amdgpu-pro/lib/i386-linux-gnu:${LD_LIBRARY_PATH}" +} + +if [[ $(basename $0) == gl_mesa ]]; then + gl_mesa +elif [[ $(basename $0) == gl_zink ]]; then + gl_zink +elif [[ $(basename $0) == gl_pro ]]; then + gl_pro +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/vk_amdvlk b/pika-amdgpu-switcher/usr/bin/vk_amdvlk new file mode 100755 index 0000000..fb92fe7 --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/vk_amdvlk @@ -0,0 +1,52 @@ +#!/usr/bin/bash + +# This script applies amdvlk-pro/amdvlk/radv Vulkan driver for specific application. +# You can see the list of available drivers with vulkaninfo utility, see the driverName and driverID lines. +# +# Usage: +# +# For example: +# $ vk_pro vkmark +# This will start vkmark with AMDGPU PRO vulkan driver. + +# When amdvlk is installed, then VK_ICD_FILENAMES is ignored and AMD_VULKAN_ICD is read instead. However, AMD_VULKAN_ICD does not allow you (afaics) select pro driver. +# So we revert this behavior to standard one. +export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 + +RADV_DIR="/usr/share/vulkan/icd.d" +PRO_DIR="/opt/amdgpu-pro/etc/vulkan/icd.d" +VLK_DIR="/etc/vulkan/icd.d" +LEGACY_DIR="/opt/amdgpu-pro/vulkan-legacy/etc/vulkan/icd.d" + +vk_radv() { + export VK_ICD_FILENAMES="${RADV_DIR}/radeon_icd.i686.json:${RADV_DIR}/radeon_icd.x86_64.json" +} + +vk_amdvlk() { + export VK_ICD_FILENAMES="${VLK_DIR}/amd_icd32.json:${VLK_DIR}/amd_icd64.json" +} + +vk_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:${LD_LIBRARY_PATH}" + export VK_ICD_FILENAMES="${PRO_DIR}/amd_icd32.json:${PRO_DIR}/amd_icd64.json" +} + +vk_legacy() { + export VK_ICD_FILENAMES="${LEGACY_DIR}/amd_icd32.json:${LEGACY_DIR}/amd_icd64.json" +} + +if [[ $(basename $0) == vk_radv ]]; then + vk_radv +elif [[ $(basename $0) == vk_amdvlk ]]; then + vk_amdvlk +elif [[ $(basename $0) == vk_pro ]]; then + vk_pro +elif [[ $(basename $0) == vk_legacy ]]; then + vk_legacy +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/vk_legacy b/pika-amdgpu-switcher/usr/bin/vk_legacy new file mode 100755 index 0000000..fb92fe7 --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/vk_legacy @@ -0,0 +1,52 @@ +#!/usr/bin/bash + +# This script applies amdvlk-pro/amdvlk/radv Vulkan driver for specific application. +# You can see the list of available drivers with vulkaninfo utility, see the driverName and driverID lines. +# +# Usage: +# +# For example: +# $ vk_pro vkmark +# This will start vkmark with AMDGPU PRO vulkan driver. + +# When amdvlk is installed, then VK_ICD_FILENAMES is ignored and AMD_VULKAN_ICD is read instead. However, AMD_VULKAN_ICD does not allow you (afaics) select pro driver. +# So we revert this behavior to standard one. +export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 + +RADV_DIR="/usr/share/vulkan/icd.d" +PRO_DIR="/opt/amdgpu-pro/etc/vulkan/icd.d" +VLK_DIR="/etc/vulkan/icd.d" +LEGACY_DIR="/opt/amdgpu-pro/vulkan-legacy/etc/vulkan/icd.d" + +vk_radv() { + export VK_ICD_FILENAMES="${RADV_DIR}/radeon_icd.i686.json:${RADV_DIR}/radeon_icd.x86_64.json" +} + +vk_amdvlk() { + export VK_ICD_FILENAMES="${VLK_DIR}/amd_icd32.json:${VLK_DIR}/amd_icd64.json" +} + +vk_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:${LD_LIBRARY_PATH}" + export VK_ICD_FILENAMES="${PRO_DIR}/amd_icd32.json:${PRO_DIR}/amd_icd64.json" +} + +vk_legacy() { + export VK_ICD_FILENAMES="${LEGACY_DIR}/amd_icd32.json:${LEGACY_DIR}/amd_icd64.json" +} + +if [[ $(basename $0) == vk_radv ]]; then + vk_radv +elif [[ $(basename $0) == vk_amdvlk ]]; then + vk_amdvlk +elif [[ $(basename $0) == vk_pro ]]; then + vk_pro +elif [[ $(basename $0) == vk_legacy ]]; then + vk_legacy +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/vk_pro b/pika-amdgpu-switcher/usr/bin/vk_pro new file mode 100755 index 0000000..fb92fe7 --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/vk_pro @@ -0,0 +1,52 @@ +#!/usr/bin/bash + +# This script applies amdvlk-pro/amdvlk/radv Vulkan driver for specific application. +# You can see the list of available drivers with vulkaninfo utility, see the driverName and driverID lines. +# +# Usage: +# +# For example: +# $ vk_pro vkmark +# This will start vkmark with AMDGPU PRO vulkan driver. + +# When amdvlk is installed, then VK_ICD_FILENAMES is ignored and AMD_VULKAN_ICD is read instead. However, AMD_VULKAN_ICD does not allow you (afaics) select pro driver. +# So we revert this behavior to standard one. +export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 + +RADV_DIR="/usr/share/vulkan/icd.d" +PRO_DIR="/opt/amdgpu-pro/etc/vulkan/icd.d" +VLK_DIR="/etc/vulkan/icd.d" +LEGACY_DIR="/opt/amdgpu-pro/vulkan-legacy/etc/vulkan/icd.d" + +vk_radv() { + export VK_ICD_FILENAMES="${RADV_DIR}/radeon_icd.i686.json:${RADV_DIR}/radeon_icd.x86_64.json" +} + +vk_amdvlk() { + export VK_ICD_FILENAMES="${VLK_DIR}/amd_icd32.json:${VLK_DIR}/amd_icd64.json" +} + +vk_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:${LD_LIBRARY_PATH}" + export VK_ICD_FILENAMES="${PRO_DIR}/amd_icd32.json:${PRO_DIR}/amd_icd64.json" +} + +vk_legacy() { + export VK_ICD_FILENAMES="${LEGACY_DIR}/amd_icd32.json:${LEGACY_DIR}/amd_icd64.json" +} + +if [[ $(basename $0) == vk_radv ]]; then + vk_radv +elif [[ $(basename $0) == vk_amdvlk ]]; then + vk_amdvlk +elif [[ $(basename $0) == vk_pro ]]; then + vk_pro +elif [[ $(basename $0) == vk_legacy ]]; then + vk_legacy +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/bin/vk_radv b/pika-amdgpu-switcher/usr/bin/vk_radv new file mode 100755 index 0000000..fb92fe7 --- /dev/null +++ b/pika-amdgpu-switcher/usr/bin/vk_radv @@ -0,0 +1,52 @@ +#!/usr/bin/bash + +# This script applies amdvlk-pro/amdvlk/radv Vulkan driver for specific application. +# You can see the list of available drivers with vulkaninfo utility, see the driverName and driverID lines. +# +# Usage: +# +# For example: +# $ vk_pro vkmark +# This will start vkmark with AMDGPU PRO vulkan driver. + +# When amdvlk is installed, then VK_ICD_FILENAMES is ignored and AMD_VULKAN_ICD is read instead. However, AMD_VULKAN_ICD does not allow you (afaics) select pro driver. +# So we revert this behavior to standard one. +export DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 + +RADV_DIR="/usr/share/vulkan/icd.d" +PRO_DIR="/opt/amdgpu-pro/etc/vulkan/icd.d" +VLK_DIR="/etc/vulkan/icd.d" +LEGACY_DIR="/opt/amdgpu-pro/vulkan-legacy/etc/vulkan/icd.d" + +vk_radv() { + export VK_ICD_FILENAMES="${RADV_DIR}/radeon_icd.i686.json:${RADV_DIR}/radeon_icd.x86_64.json" +} + +vk_amdvlk() { + export VK_ICD_FILENAMES="${VLK_DIR}/amd_icd32.json:${VLK_DIR}/amd_icd64.json" +} + +vk_pro() { + export LD_LIBRARY_PATH="/opt/amdgpu/lib/x86_64-linux-gnu:/opt/amdgpu/i386-linux-gnu:${LD_LIBRARY_PATH}" + export VK_ICD_FILENAMES="${PRO_DIR}/amd_icd32.json:${PRO_DIR}/amd_icd64.json" +} + +vk_legacy() { + export VK_ICD_FILENAMES="${LEGACY_DIR}/amd_icd32.json:${LEGACY_DIR}/amd_icd64.json" +} + +if [[ $(basename $0) == vk_radv ]]; then + vk_radv +elif [[ $(basename $0) == vk_amdvlk ]]; then + vk_amdvlk +elif [[ $(basename $0) == vk_pro ]]; then + vk_pro +elif [[ $(basename $0) == vk_legacy ]]; then + vk_legacy +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/cl_pro b/pika-amdgpu-switcher/usr/share/bash-completion/completions/cl_pro new file mode 100644 index 0000000..4a78a17 --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/cl_pro @@ -0,0 +1 @@ +_have cl_pro && complete -F _command cl_pro diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_mesa b/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_mesa new file mode 100644 index 0000000..fb26129 --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_mesa @@ -0,0 +1,3 @@ +_have gl_mesa && complete -F _command gl_mesa +_have gl_zink && complete -F _command gl_zink +_have gl_pro && complete -F _command gl_pro diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_pro b/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_pro new file mode 100644 index 0000000..fb26129 --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_pro @@ -0,0 +1,3 @@ +_have gl_mesa && complete -F _command gl_mesa +_have gl_zink && complete -F _command gl_zink +_have gl_pro && complete -F _command gl_pro diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_zink b/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_zink new file mode 100644 index 0000000..fb26129 --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/gl_zink @@ -0,0 +1,3 @@ +_have gl_mesa && complete -F _command gl_mesa +_have gl_zink && complete -F _command gl_zink +_have gl_pro && complete -F _command gl_pro diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_amdvlk b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_amdvlk new file mode 100644 index 0000000..545981b --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_amdvlk @@ -0,0 +1,4 @@ +_have vk_radv && complete -F _command vk_radv +_have vk_amdvlk && complete -F _command vk_amdvlk +_have vk_pro && complete -F _command vk_pro +_have vk_legacy && complete -F _command vk_legacy diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_legacy b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_legacy new file mode 100644 index 0000000..545981b --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_legacy @@ -0,0 +1,4 @@ +_have vk_radv && complete -F _command vk_radv +_have vk_amdvlk && complete -F _command vk_amdvlk +_have vk_pro && complete -F _command vk_pro +_have vk_legacy && complete -F _command vk_legacy diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_pro b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_pro new file mode 100644 index 0000000..545981b --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_pro @@ -0,0 +1,4 @@ +_have vk_radv && complete -F _command vk_radv +_have vk_amdvlk && complete -F _command vk_amdvlk +_have vk_pro && complete -F _command vk_pro +_have vk_legacy && complete -F _command vk_legacy diff --git a/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_radv b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_radv new file mode 100644 index 0000000..545981b --- /dev/null +++ b/pika-amdgpu-switcher/usr/share/bash-completion/completions/vk_radv @@ -0,0 +1,4 @@ +_have vk_radv && complete -F _command vk_radv +_have vk_amdvlk && complete -F _command vk_amdvlk +_have vk_pro && complete -F _command vk_pro +_have vk_legacy && complete -F _command vk_legacy