aboutsummarylogtreecommitdiffstats
path: root/provlk
blob: 5b1b6d034f989265f4fe60bd6e6d9ed0f4a33439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
"$@"