ci/traces: GC unused code for DXVK trace replay.
I haven't found any use of it since it was introduced, and it got in the way of zink trace testing. Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17125>
This commit is contained in:
@@ -13,6 +13,7 @@ mkdir -p "$RESULTS"
|
|||||||
# using a command wrapper. Hence, we will just set it when running the
|
# using a command wrapper. Hence, we will just set it when running the
|
||||||
# command.
|
# command.
|
||||||
export __LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$INSTALL/lib/"
|
export __LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$INSTALL/lib/"
|
||||||
|
export VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.${VK_CPU:-`uname -m`}.json"
|
||||||
|
|
||||||
# Sanity check to ensure that our environment is sufficient to make our tests
|
# Sanity check to ensure that our environment is sufficient to make our tests
|
||||||
# run against the Mesa built by CI, rather than any installed distro version.
|
# run against the Mesa built by CI, rather than any installed distro version.
|
||||||
@@ -33,92 +34,48 @@ quiet() {
|
|||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$VK_DRIVER" ]; then
|
# Set environment for apitrace executable.
|
||||||
|
export PATH="/apitrace/build:$PATH"
|
||||||
|
|
||||||
### VULKAN ###
|
# Our rootfs may not have "less", which apitrace uses during
|
||||||
|
# apitrace dump
|
||||||
|
export PAGER=cat
|
||||||
|
|
||||||
# Set the Vulkan driver to use.
|
SANITY_MESA_VERSION_CMD="wflinfo"
|
||||||
export VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.x86_64.json"
|
|
||||||
|
|
||||||
# Set environment for Wine.
|
HANG_DETECTION_CMD=""
|
||||||
export WINEDEBUG="-all"
|
|
||||||
export WINEPREFIX="/dxvk-wine64"
|
|
||||||
export WINEESYNC=1
|
|
||||||
|
|
||||||
# Set environment for DXVK.
|
|
||||||
export DXVK_LOG_LEVEL="none"
|
|
||||||
export DXVK_STATE_CACHE=0
|
|
||||||
|
|
||||||
# Set environment for gfxreconstruct executables.
|
|
||||||
export PATH="/gfxreconstruct/build/bin:$PATH"
|
|
||||||
|
|
||||||
SANITY_MESA_VERSION_CMD="vulkaninfo"
|
|
||||||
|
|
||||||
HANG_DETECTION_CMD="/parallel-deqp-runner/build/bin/hang-detection"
|
|
||||||
|
|
||||||
|
|
||||||
# Set up the Window System Interface (WSI)
|
# Set up the platform windowing system.
|
||||||
|
|
||||||
if [ ${TEST_START_XORG:-0} -eq 1 ]; then
|
if [ "x$EGL_PLATFORM" = "xsurfaceless" ]; then
|
||||||
"$INSTALL"/common/start-x.sh "$INSTALL"
|
# Use the surfaceless EGL platform.
|
||||||
export DISPLAY=:0
|
export DISPLAY=
|
||||||
else
|
export WAFFLE_PLATFORM="surfaceless_egl"
|
||||||
# Run vulkan against the host's running X server (xvfb doesn't
|
|
||||||
# have DRI3 support).
|
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform surfaceless_egl --api gles2"
|
||||||
# Set the DISPLAY env variable in each gitlab-runner's
|
|
||||||
# configuration file:
|
if [ "x$GALLIUM_DRIVER" = "xvirpipe" ]; then
|
||||||
# https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-section
|
# piglit is to use virpipe, and virgl_test_server llvmpipe
|
||||||
quiet printf "%s%s\n" "Running against the hosts' X server. " \
|
export GALLIUM_DRIVER="$GALLIUM_DRIVER"
|
||||||
"DISPLAY is \"$DISPLAY\"."
|
|
||||||
|
LD_LIBRARY_PATH="$__LD_LIBRARY_PATH" \
|
||||||
|
GALLIUM_DRIVER=llvmpipe \
|
||||||
|
VTEST_USE_EGL_SURFACELESS=1 \
|
||||||
|
VTEST_USE_GLES=1 \
|
||||||
|
virgl_test_server >"$RESULTS"/vtest-log.txt 2>&1 &
|
||||||
|
|
||||||
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
elif [ "x$PIGLIT_PLATFORM" = "xgbm" ]; then
|
||||||
|
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform gbm --api gl"
|
||||||
|
elif [ "x$PIGLIT_PLATFORM" = "xmixed_glx_egl" ]; then
|
||||||
|
# It is assumed that you have already brought up your X server before
|
||||||
|
# calling this script.
|
||||||
|
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform glx --api gl"
|
||||||
else
|
else
|
||||||
|
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform glx --api gl --profile core"
|
||||||
### GL/ES ###
|
RUN_CMD_WRAPPER="xvfb-run --server-args=\"-noreset\" sh -c"
|
||||||
|
|
||||||
# Set environment for apitrace executable.
|
|
||||||
export PATH="/apitrace/build:$PATH"
|
|
||||||
|
|
||||||
# Our rootfs may not have "less", which apitrace uses during
|
|
||||||
# apitrace dump
|
|
||||||
export PAGER=cat
|
|
||||||
|
|
||||||
SANITY_MESA_VERSION_CMD="wflinfo"
|
|
||||||
|
|
||||||
HANG_DETECTION_CMD=""
|
|
||||||
|
|
||||||
|
|
||||||
# Set up the platform windowing system.
|
|
||||||
|
|
||||||
if [ "x$EGL_PLATFORM" = "xsurfaceless" ]; then
|
|
||||||
|
|
||||||
# Use the surfaceless EGL platform.
|
|
||||||
export DISPLAY=
|
|
||||||
export WAFFLE_PLATFORM="surfaceless_egl"
|
|
||||||
|
|
||||||
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform surfaceless_egl --api gles2"
|
|
||||||
|
|
||||||
if [ "x$GALLIUM_DRIVER" = "xvirpipe" ]; then
|
|
||||||
# piglit is to use virpipe, and virgl_test_server llvmpipe
|
|
||||||
export GALLIUM_DRIVER="$GALLIUM_DRIVER"
|
|
||||||
|
|
||||||
LD_LIBRARY_PATH="$__LD_LIBRARY_PATH" \
|
|
||||||
GALLIUM_DRIVER=llvmpipe \
|
|
||||||
VTEST_USE_EGL_SURFACELESS=1 \
|
|
||||||
VTEST_USE_GLES=1 \
|
|
||||||
virgl_test_server >"$RESULTS"/vtest-log.txt 2>&1 &
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
fi
|
|
||||||
elif [ "x$PIGLIT_PLATFORM" = "xgbm" ]; then
|
|
||||||
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform gbm --api gl"
|
|
||||||
elif [ "x$PIGLIT_PLATFORM" = "xmixed_glx_egl" ]; then
|
|
||||||
# It is assumed that you have already brought up your X server before
|
|
||||||
# calling this script.
|
|
||||||
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform glx --api gl"
|
|
||||||
else
|
|
||||||
SANITY_MESA_VERSION_CMD="$SANITY_MESA_VERSION_CMD --platform glx --api gl --profile core"
|
|
||||||
RUN_CMD_WRAPPER="xvfb-run --server-args=\"-noreset\" sh -c"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ZINK_USE_LAVAPIPE" ]; then
|
if [ "$ZINK_USE_LAVAPIPE" ]; then
|
||||||
|
Reference in New Issue
Block a user