mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-17 08:27:39 +00:00
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 <jasuarez@igalia.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8745>
This commit is contained in:
parent
3d4c13f3b8
commit
5d0c96a8c2
@ -69,6 +69,7 @@ for var in \
|
||||
PIGLIT_REPLAY_UPLOAD_TO_MINIO \
|
||||
PIGLIT_RESULTS \
|
||||
TU_DEBUG \
|
||||
VK_CPU \
|
||||
VK_DRIVER \
|
||||
; do
|
||||
if [ -n "${!var+x}" ]; then
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user