diff options
author | Khaled Nakchbandi | 2022-03-03 21:55:59 +0200 |
---|---|---|
committer | Khaled Nakchbandi | 2022-03-03 21:55:59 +0200 |
commit | 4fdd71ead8e328fea1c004bb37ed28d9ff53bb89 (patch) | |
tree | 67ee7db62c342f63525aab1380fe0588467aefca /provlk | |
download | aur-4fdd71ead8e328fea1c004bb37ed28d9ff53bb89.tar.gz |
initial commit
Diffstat (limited to 'provlk')
-rw-r--r-- | provlk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/provlk b/provlk new file mode 100644 index 000000000000..5b1b6d034f98 --- /dev/null +++ b/provlk @@ -0,0 +1,21 @@ +#!/bin/bash + +# This script applies amdgpu-pro Vulkan driver for specific application. +# For example, running "$ provlk steam" will start steam with AMDGPU PRO driver. +# You can test the difference (driverName, driverID) with vulkaninfo utility. + +provlk() { + export AMD_VULKAN_ICD=amdvlk-pro + export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json:/usr/share/vulkan/icd.d/amd_pro_icd32.json +} + + +if [[ $(basename $0) == provlk ]]; then + provlk +else + echo "Unknown function" + exit 1 +fi + +# applied variables, now execute the rest of the command +"$@" |