mesa/.gitlab-ci/windows
Erik Faye-Lund a2d091694f gallium/u_vbuf: avoid dereferencing NULL pointer
When I last time fixed this, I missed that continuing here would make us
leak pointers in the translate state, which is what made this avoid a
crash in the first place.

That's not great, we need to set *some* pointer in this case. The
obvious option would be NULL, but that means that the translate-code
also needs to support NULL-pointers here.

Instead, let's point to a small, static buffer that contains enough
zero-data for the largest possible vertex attribute. This avoids having
to add more NULL-checks.

Fixes: a8e8204b18 ("gallium/u_vbuf: support NULL-resources")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7773>
2021-05-05 11:16:42 +00:00
..
Dockerfile CI: windows: split the layers to meet new registry requirements 2021-01-29 17:54:56 +00:00
README.md
mesa_build.ps1 ci: Update Windows image to build RADV 2021-04-23 10:37:22 +00:00
mesa_container.ps1 CI: Windows: Use separate config file for Docker 2020-08-28 10:15:40 +00:00
mesa_deps.ps1 ci: Update Windows image to build RADV 2021-04-23 10:37:22 +00:00
mesa_deps_vs2019.ps1 CI: windows: split the layers to meet new registry requirements 2021-01-29 17:54:56 +00:00
piglit_run.ps1 ci/piglit: allow parallel piglit jobs 2021-02-24 09:41:33 +01:00
quick_gl.txt gallium/u_vbuf: avoid dereferencing NULL pointer 2021-05-05 11:16:42 +00:00

README.md

Native Windows GitLab CI builds

Unlike Linux, Windows cannot reuse the freedesktop ci-templates as they exist as we do not have Podman, Skopeo, or even Docker-in-Docker builds available under Windows.

We still reuse the same model: build a base container with the core operating system and infrequently-changed build dependencies, then execute Mesa builds only inside that base container. This is open-coded in PowerShell scripts.

Base container build

The base container build job executes the mesa_container.ps1 script which reproduces the ci-templates behaviour. It looks for the registry image in the user's namespace, and exits if found. If not found, it tries to copy the same image tag from the upstream Mesa repository. If that is not found, the image is rebuilt inside the user's namespace.

The rebuild executes docker build which calls mesa_deps.ps1 inside the container to fetch and install all build dependencies. This includes Visual Studio Community Edition (downloaded from Microsoft, under the license which allows use by open-source projects), other build tools from Chocolatey, and finally Meson and Python dependencies from PyPI.

This job is executed inside a Windows shell environment directly inside the host, without Docker.

Mesa build

The Mesa build runs inside the base container, executing mesa_build.ps1. This simply compiles Mesa using Meson and Ninja, executing the build and unit tests. Currently, no build artifacts are captured.