
https://github.com/LunarG/gfxreconstruct/issues/328 and https://github.com/LunarG/gfxreconstruct/issues/402 are already fixed in the "master" branch. Updated the piglit version so it supports this version. Additionally, LunarG's VulkanTools are not built any more since GFXReconstruct is now able to generate screenshots on its own without using the VK_LAYER_LUNARG_screenshot layer. v2: - Explain the VulkanTools removal in the commit log (Martin). Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9032>
28 lines
938 B
Bash
28 lines
938 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
if [ -n "$INCLUDE_OPENCL_TESTS" ]; then
|
|
PIGLIT_OPTS="-DPIGLIT_BUILD_CL_TESTS=ON"
|
|
fi
|
|
|
|
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
|
|
pushd /piglit
|
|
git checkout b0bbeb876a506e0ee689dd7e17cee374c8284058
|
|
patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
|
|
cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
|
|
ninja $PIGLIT_BUILD_TARGETS
|
|
find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
|
|
rm -rf target_api
|
|
if [ "x$PIGLIT_BUILD_TARGETS" = "xpiglit_replayer" ]; then
|
|
find ! -regex "^\.$" \
|
|
! -regex "^\.\/piglit.*" \
|
|
! -regex "^\.\/framework.*" \
|
|
! -regex "^\.\/bin$" \
|
|
! -regex "^\.\/bin\/replayer\.py" \
|
|
! -regex "^\.\/templates.*" \
|
|
! -regex "^\.\/tests$" \
|
|
! -regex "^\.\/tests\/replay\.py" 2>/dev/null | xargs rm -rf
|
|
fi
|
|
popd
|