summaryrefslogtreecommitdiff
path: root/.gitlab-ci/container/debian/x86_test-vk.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/container/debian/x86_test-vk.sh')
-rw-r--r--.gitlab-ci/container/debian/x86_test-vk.sh39
1 files changed, 32 insertions, 7 deletions
diff --git a/.gitlab-ci/container/debian/x86_test-vk.sh b/.gitlab-ci/container/debian/x86_test-vk.sh
index 57026d26e95..dd2ce3a53cf 100644
--- a/.gitlab-ci/container/debian/x86_test-vk.sh
+++ b/.gitlab-ci/container/debian/x86_test-vk.sh
@@ -100,15 +100,40 @@ EOF
############### Install DXVK
-DXVK_VERSION="1.8.1"
+dxvk_install_release() {
+ local DXVK_VERSION=${1:-"1.10.1"}
+
+ wget "https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
+ tar xzpf dxvk-"${DXVK_VERSION}".tar.gz
+ "dxvk-${DXVK_VERSION}"/setup_dxvk.sh install
+ rm -rf "dxvk-${DXVK_VERSION}"
+ rm dxvk-"${DXVK_VERSION}".tar.gz
+}
-setup_wine "/dxvk-wine64"
+# Install from a Github PR number
+dxvk_install_pr() {
+ local __prnum=$1
+
+ # NOTE: Clone all the ensite history of the repo so as not to think
+ # harder about cloning just enough for 'git describe' to work. 'git
+ # describe' is used by the dxvk build system to generate a
+ # dxvk_version Meson variable, which is nice-to-have.
+ git clone https://github.com/doitsujin/dxvk
+ pushd dxvk
+ git fetch origin pull/"$__prnum"/head:pr
+ git checkout pr
+ ./package-release.sh pr ../dxvk-build --no-package
+ popd
+ pushd ./dxvk-build/dxvk-pr
+ ./setup_dxvk.sh install
+ popd
+ rm -rf ./dxvk-build ./dxvk
+}
-wget "https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
-tar xzpf dxvk-"${DXVK_VERSION}".tar.gz
-dxvk-"${DXVK_VERSION}"/setup_dxvk.sh install
-rm -rf dxvk-"${DXVK_VERSION}"
-rm dxvk-"${DXVK_VERSION}".tar.gz
+# Sets up the WINEPREFIX for the DXVK installation commands below.
+setup_wine "/dxvk-wine64"
+dxvk_install_release "1.10.1"
+#dxvk_install_pr 2359
############### Install Windows' apitrace binaries