mesa/.gitlab-ci/container
Guilherme Gallo 8992cf5ab8 ci: Build skqp on ARM64 images
This commit makes `kernel+rootfs_arm64` job build and install skqp on
ARM64 devices rootfs.

Skia repository has a tool to prepare skqp models located at
`tools/skqp/cut-release`, which get files from [Skia
Gold](https://skia.org/docs/dev/testing/skiagold/), generate
files.checksum, rendertests.txt and unittests.txt. One gives a range of
commits to let `cut-release` find the right resources to prepare skqp
for the user. However, it is failing, since it fails when trying to get
image packages from a range of commits via HTTPS from the host
https://public-gold.skia.org but it responds with error 404 every time.
I tried a range a thousand of commits, yet it still does not give
results. The workaround employed was to recover the most recent
`files.checksum` and `rendertests.txt` files from the git history and
generate `unittests.txt` from `list_gpu_unit_tests` binary.

`skqp` runs two lists of tests, `rendertests.txt` and `unittests.txt`.
Both must be located inside the `skqp` assets folder.  The first list
uses GL and GLES to test rendering scenarios. The second runs some unit
tests that do not render an image per se.

In order to make the first `a630_skqp` to be green, the crashing tests
were removed from the test lists and the expectations of the failing
ones were updated.

It is worth noting that `rendertests.txt` can bring some detail about
each test expectation, so each test can have a max pixel error count, to
tell `skqp` that it is OK to have at most that number of errors for that
test. See also:
https://github.com/google/skia/blob/main/tools/skqp/README_ALGORITHM.md

As each render backend has a different error count, two different
`rendertests.txt` files were created,
`src/freedreno/ci/freedreno-a630-skqp-gl_rendertests.txt`,
`src/freedreno/ci/freedreno-a630-skqp-gles_rendertests.txt` and
, which one refers to GL and GLES tests respectfully.
The unit tests file for a630 is located at
`src/freedreno/ci/freedreno-a630-skqp_unittests.txt`

```
aaclip
domain
formats
highcontrastfilter
rectangle_texture
yuv_make_color_space
```

```
ProcessorOptimizationValidationTest
VkProtectedContext_CreateNonprotectedContext
VkYCbcrSampler_DrawImageWithYcbcrSampler
VkYCbcrSampler_NoYcbcrSurface
```

Each test was updated with the max_error count equal to the first run result.

```
analytic_antialias_inverse
async_rescale_and_read_dog_down
async_rescale_and_read_dog_up
async_rescale_and_read_rose
async_rescale_and_read_text_down
async_rescale_and_read_text_up
async_rescale_and_read_text_up_large
async_rescale_and_read_yuv420_rose
complexclip2_path_bw
encode-platform
imageblur_large
lcdtextsize
onebadarc
onefailarc
scale-pixels
surfaceprops
textfilter_color
textfilter_image
```

Considering all the following tests results as wrong.

```
async_rescale_and_read_no_bleed
backdrop_imagefilter_croprect_persp
complexclip2
imageblurrepeatmode
mixerCF
overdrawcolorfilter
patch_alpha
patch_primitive
rrect_clip_bw
scaledemoji_rendering
yuv_splitter
```

v2:
  a) add link to HTML report on job log
  b) remove extraneous spaces diff
  c) remove unnecessary conditions from build-skqp.sh
  d) use fixed skqp source commit SHA

v3:
  a) Use only main skia repository to fetch models and build skqp
  b) Use list_gpu_unit_tests binary to create a base unittests.txt file
  c) Remove crashing tests
  d) Set failing tests expectations for the first skqp run

v4:
  a) Remove clang dependency
  b) Separate each skqp backend result into its folder
  c) Regroup a630_skqp in one job

v5:
  a) Separate tests files per driver

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5580
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14146>
2022-01-05 20:15:04 +00:00
..
debian ci: Update ci-fairy to version with --token-file support 2021-12-02 18:01:29 +00:00
fedora ci: Consistently build Wayland and protocols 2021-11-26 16:06:09 +00:00
arm.config ci: include etnaviv support in ARMHF container. 2021-09-17 17:54:39 +00:00
arm64.config ci: Add support for lazor Chromebooks 2021-11-02 10:51:54 +00:00
baremetal_build.sh ci: include etnaviv support in ARMHF container. 2021-09-17 17:54:39 +00:00
build-apitrace.sh
build-crosvm.sh ci: pin virglrenderer version 2021-12-14 12:32:26 +00:00
build-deqp-runner.sh ci: Enable testing radeonsi's libva using libva-util unit tests. 2021-10-28 23:17:19 +00:00
build-deqp.sh ci: Uprev VK-GL-CTS to 1.2.7.2, and pull in piglit while I'm here. 2021-11-02 20:29:31 +00:00
build-fossilize.sh
build-gfxreconstruct.sh
build-hang-detection.sh
build-kernel.sh ci: Move Kernel build tasks into its own file 2021-06-09 19:14:00 +00:00
build-libclc.sh
build-libdrm.sh ci: Upgrade to libdrm 2.4.109 2021-11-26 16:06:09 +00:00
build-piglit.sh ci: Uprev piglit 2021-12-02 18:01:29 +00:00
build-rust.sh ci: Increase the default Rust toolchain version 2021-08-03 14:24:08 +00:00
build-skqp.sh ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
build-skqp_base.gn ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
build-skqp_download_model.patch ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
build-skqp_fetch-gn.patch ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
build-va-tools.sh ci: Enable testing radeonsi's libva using libva-util unit tests. 2021-10-28 23:17:19 +00:00
build-vkd3d-proton.sh
build-wayland.sh ci: Consistently build Wayland and protocols 2021-11-26 16:06:09 +00:00
container_post_build.sh ci: Add Fedora 34 based x86 build docker image 2021-07-09 10:24:41 +00:00
container_pre_build.sh ci: Add Fedora 34 based x86 build docker image 2021-07-09 10:24:41 +00:00
create-android-cross-file.sh meson: Check arguments before adding. 2021-11-09 20:51:14 +00:00
create-android-ndk-pc.sh
create-cross-file.sh
create-rootfs.sh ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
cross_build.sh
lava_build.sh ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
x86_64.config ci: Update linux kernel to v5.15 2021-11-02 06:59:27 +01:00