diff options
authorJuan A. Suarez Romero <>2021-01-26 19:13:21 +0100
committerMarge Bot <>2021-02-15 15:47:31 +0000
commit5d0c96a8c2c5410b330e5389aab43227fafc1b1f (patch)
parent3d4c13f3b8e40c3ae1825bcb695bffe49d2ffb70 (diff)
ci: add option to overwrite CPU arch
When loading Vulkan ICD file, it uses the CPU machine identifier to load the correct one, in case multiple versions are installed. This is fine if the machine where Mesa has been built and the machine where the test is run are exactly the same. But this is not always the case. As example, for armhf architecture, the machine where Mesa is built is identified as `arm7hlf`, but the Raspberry Pi 4 is identified as `armv7l`, so it will fail to load the ICD file, though both are totally compatible. This allow to define the architecture instead. Signed-off-by: Juan A. Suarez Romero <> Reviewed-by: Eric Anholt <> Part-of: <>
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci/bare-metal/ b/.gitlab-ci/bare-metal/
index 82367ad50b9..ce8b6d4ba7d 100644
--- a/.gitlab-ci/bare-metal/
+++ b/.gitlab-ci/bare-metal/
@@ -69,6 +69,7 @@ for var in \
+ VK_CPU \
; do
if [ -n "${!var+x}" ]; then
diff --git a/.gitlab-ci/ b/.gitlab-ci/
index 92f97045fe5..8a52b7909cc 100755
--- a/.gitlab-ci/
+++ b/.gitlab-ci/
@@ -34,7 +34,7 @@ INSTALL=`pwd`/install
# Set up the driver environment.
export LD_LIBRARY_PATH=`pwd`/install/lib/
export EGL_PLATFORM=surfaceless
-export VK_ICD_FILENAMES=`pwd`/install/share/vulkan/icd.d/"$VK_DRIVER"_icd.`uname -m`.json
+export VK_ICD_FILENAMES=`pwd`/install/share/vulkan/icd.d/"$VK_DRIVER"_icd.${VK_CPU:-`uname -m`}.json
# the runner was failing to look for libkms in /usr/local/lib for some reason
# I never figured out.