ci: Move Vulkan CTS patches to their own directory
authorSergi Blanch Torne <sergi.blanch.torne@collabora.com>
Thu, 13 Apr 2023 09:51:29 +0000 (11:51 +0200)
committerSergi Blanch Torne <sergi.blanch.torne@collabora.com>
Fri, 21 Apr 2023 06:41:25 +0000 (08:41 +0200)
VulkanCTS can receive patches from a reference to an upstream commit or by a
file stored in Mesa. Those locally stored patches for VulkanCTS should be
stored in the specific directory for patches with a prefix like skqp does.

The schema of how both sources apply patches has received a slight
modification to resemble each other.

Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22463>

.gitlab-ci/container/build-deqp.sh
.gitlab-ci/container/patches/build-deqp_Allow-running-on-Android-from-the-command-line.patch [moved from .gitlab-ci/container/0001-Allow-running-on-Android-from-the-command-line.patch with 100% similarity]
.gitlab-ci/container/patches/build-deqp_Android-prints-to-stdout-instead-of-logcat.patch [moved from .gitlab-ci/container/0002-Android-prints-to-stdout-instead-of-logcat.patch with 100% similarity]
.gitlab-ci/container/patches/build-deqp_Fix-build-for-the-surfaceless-and-null-WS-target-pla.patch [moved from .gitlab-ci/container/0001-Fix-build-for-the-surfaceless-and-null-WS-target-pla.patch with 100% similarity]
.gitlab-ci/image-tags.yml

index b3c2c43..c55b8f6 100644 (file)
@@ -19,20 +19,35 @@ git clone \
     /VK-GL-CTS
 pushd /VK-GL-CTS
 
+# Patches to VulkanCTS may come from commits in their repo (listed in
+# cts_commits_to_backport) or patch files stored in our repo (in the patch
+# directory `$OLDPWD/.gitlab-ci/container/patches/` listed in cts_patch_files).
+# Both list variables would have comments explaining the reasons behind the
+# patches.
+
 cts_commits_to_backport=()
 
 for commit in "${cts_commits_to_backport[@]}"
 do
-  curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
-    "https://github.com/KhronosGroup/VK-GL-CTS/commit/$commit.patch" | git am -
+  PATCH_URL="https://github.com/KhronosGroup/VK-GL-CTS/commit/$commit.patch"
+  echo "Apply patch to VK-GL-CTS from $PATCH_URL"
+  curl -L --retry 4 -f --retry-all-errors --retry-delay 60 $PATCH_URL | \
+    git am -
 done
 
-# Fix surfaceless build.
-git am < $OLDPWD/.gitlab-ci/container/0001-Fix-build-for-the-surfaceless-and-null-WS-target-pla.patch
+cts_patch_files=(
+  # Fix surfaceless build.
+  build-deqp_Fix-build-for-the-surfaceless-and-null-WS-target-pla.patch
+  # Android specific patches.
+  build-deqp_Allow-running-on-Android-from-the-command-line.patch
+  build-deqp_Android-prints-to-stdout-instead-of-logcat.patch
+)
 
-# Android specific patches.
-git am < $OLDPWD/.gitlab-ci/container/0001-Allow-running-on-Android-from-the-command-line.patch
-git am < $OLDPWD/.gitlab-ci/container/0002-Android-prints-to-stdout-instead-of-logcat.patch
+for patch in "${cts_patch_files[@]}"
+do
+  echo "Apply patch to VK-GL-CTS from $patch"
+  git am < $OLDPWD/.gitlab-ci/container/patches/$patch
+done
 
 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
 # libpng (sigh).  The archives get their checksums checked anyway, and git
index 0d481f4..9a49e9f 100644 (file)
@@ -15,13 +15,13 @@ variables:
    DEBIAN_X86_TEST_IMAGE_PATH: ${DEBIAN_X86_TEST_IMAGE_GL_PATH}
    DEBIAN_X86_TEST_ANDROID_IMAGE_PATH: "debian/x86_test-android"
 
-   DEBIAN_X86_TEST_ANDROID_TAG: "2023-04-12-deqp-egl"
-   DEBIAN_X86_TEST_GL_TAG: "2023-04-18-vulkan-validation-layer"
-   DEBIAN_X86_TEST_VK_TAG: "2023-04-14-dxvk-2.1-1"
+   DEBIAN_X86_TEST_ANDROID_TAG: "2023-04-21-deqp-vkcts"
+   DEBIAN_X86_TEST_GL_TAG: "2023-04-21-deqp-vkcts"
+   DEBIAN_X86_TEST_VK_TAG: "2023-04-21-deqp-vkcts"
 
    ALPINE_X86_BUILD_TAG: "2023-03-20-3.17-bump"
    FEDORA_X86_BUILD_TAG: "2023-03-13-procps-ng"
-   KERNEL_ROOTFS_TAG: "2023-04-16-kernel-6.3"
+   KERNEL_ROOTFS_TAG: "2023-04-21-deqp-vkcts"
 
    WINDOWS_X64_VS_PATH: "windows/x64_vs"
    WINDOWS_X64_VS_TAG: "2022-10-20-upgrade-zlib"