Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Add amdvlk as an option for Vulkan #2

Merged
merged 2 commits into from
Aug 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ startgame ${options} -- %command%
- `--vk=amdpro`
Forces VK ICD to amdpro (for AMD GPU's only)

- `--vk=amdvlk`
Forces VK ICD to amdvlk (for AMD GPU's only)

- `--vk=radeon`
Forces VK ICD to radeon (for AMD GPU's only)

Expand All @@ -79,6 +82,8 @@ startgame ${options} -- %command%

- `vulkan-amdgpu-pro`, `lib32-vulkan-amdgpu-pro` (optional)

- `amdvlk`, `lib32-amdvlk` (optional)

- `gamescope` (optional)

- `sdl2`, `lib32-sdl2` (optional)
Expand Down
8 changes: 8 additions & 0 deletions startgame
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if [[ $# -eq 0 ]] || [[ "${1:-}" == '--help' ]]; then
--soldier Enable Steam Soldier (see #notes)
--term Opens a terminal instead of the game (exposes game command in "\$GAME_CMD")
--vk=amdpro Forces VK ICD to amdpro (for AMD GPU's only)
--vk=amdvlk Forces VK ICD to amdvlk (for AMD GPU's only)
--vk=radeon Forces VK ICD to radeon (for AMD GPU's only)
--wayland Don't force XWayland
Expand All @@ -32,6 +33,7 @@ if [[ $# -eq 0 ]] || [[ "${1:-}" == '--help' ]]; then
* mangohud, lib32-mangohud
* obs-vkcapture
* vulkan-amdgpu-pro, lib32-vulkan-amdgpu-pro (optional)
* amdvlk, lib32-amdvlk (optional)
* gamescope (optional)
* sdl2, lib32-sdl2 (optional)
* Wine with FSR pattches (optional)
Expand Down Expand Up @@ -106,6 +108,10 @@ function prepare() {
_DRIVER='amdpro'
shift 1
;;
'--vk=amdvlk')
_DRIVER='amdvlk'
shift 1
;;
'--vk=radeon')
_DRIVER='radeon'
shift 1
Expand Down Expand Up @@ -207,6 +213,8 @@ function prepare() {
# * Apply features
if [[ "$_DRIVER" == 'radeon' ]]; then
GAMEMODERUNEXEC+=" VK_ICD_FILENAMES=${_ICD_PATH}/radeon_icd.i686.json:${_ICD_PATH}/radeon_icd.x86_64.json"
elif [[ "$_DRIVER" == 'amdvlk' ]]; then
GAMEMODERUNEXEC+=" VK_ICD_FILENAMES=${_ICD_PATH}/amd_icd32.json:${_ICD_PATH}/amd_icd64.json"
elif [[ "$_DRIVER" == 'amdpro' ]]; then
GAMEMODERUNEXEC+=" VK_ICD_FILENAMES=${_ICD_PATH}/amd_pro_icd32.json:${_ICD_PATH}/amd_pro_icd64.json"
fi
Expand Down