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

Commit

Permalink
Add amdvlk as an option for Vulkan (#2)
Browse files Browse the repository at this point in the history
- Add `--vk=amdvlk` to startgame;
- Update README.md to include `--vk=amdvlk` option.
  • Loading branch information
CobaltSpace authored Aug 8, 2021
1 parent a817452 commit c220864
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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

0 comments on commit c220864

Please sign in to comment.