diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 01:57:18 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 01:57:18 +0000 |
commit | b24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (patch) | |
tree | 658ca4e6b41655f49463c85edbaeda48979c394c /lib/mesa/.gitlab-ci/windows | |
parent | 57768bbb154c2879d34ec20e401b19472e77aaf7 (diff) |
Import Mesa 21.3.7
Diffstat (limited to 'lib/mesa/.gitlab-ci/windows')
-rw-r--r-- | lib/mesa/.gitlab-ci/windows/mesa_build.ps1 | 2 | ||||
-rw-r--r-- | lib/mesa/.gitlab-ci/windows/mesa_deps.ps1 | 19 | ||||
-rw-r--r-- | lib/mesa/.gitlab-ci/windows/piglit_run.ps1 | 2 | ||||
-rw-r--r-- | lib/mesa/.gitlab-ci/windows/quick_gl.txt | 10 |
4 files changed, 21 insertions, 12 deletions
diff --git a/lib/mesa/.gitlab-ci/windows/mesa_build.ps1 b/lib/mesa/.gitlab-ci/windows/mesa_build.ps1 index a15fa6d2e..42794c6ec 100644 --- a/lib/mesa/.gitlab-ci/windows/mesa_build.ps1 +++ b/lib/mesa/.gitlab-ci/windows/mesa_build.ps1 @@ -9,7 +9,7 @@ Write-Host "Compiling Mesa" $builddir = New-Item -ItemType Directory -Name "_build" $installdir = New-Item -ItemType Directory -Name "_install" Push-Location $builddir.FullName -cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson --default-library=shared -Dzlib:default_library=static --buildtype=release -Db_ndebug=false -Db_vscrt=mt --cmake-prefix-path=`"C:\llvm-10`" --pkg-config-path=`"C:\llvm-10\lib\pkgconfig;C:\llvm-10\share\pkgconfig;C:\spirv-tools\lib\pkgconfig`" --prefix=`"$installdir`" -Dllvm=enabled -Dshared-llvm=disabled -Dvulkan-drivers=swrast -Dgallium-drivers=swrast,d3d12 -Dmicrosoft-clc=enabled -Dstatic-libclc=all -Dbuild-tests=true -Dwerror=true && ninja -j32 install && meson test --num-processes 32" +cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson --default-library=shared -Dzlib:default_library=static --buildtype=release -Db_ndebug=false -Dc_std=c17 -Dcpp_std=vc++latest -Db_vscrt=mt --cmake-prefix-path=`"C:\llvm-10`" --pkg-config-path=`"C:\llvm-10\lib\pkgconfig;C:\llvm-10\share\pkgconfig;C:\spirv-tools\lib\pkgconfig`" --prefix=`"$installdir`" -Dllvm=enabled -Dshared-llvm=disabled -Dvulkan-drivers=swrast,amd -Dgallium-drivers=swrast,d3d12,zink -Dshared-glapi=enabled -Dgles2=enabled -Dmicrosoft-clc=enabled -Dstatic-libclc=all -Dspirv-to-dxil=true -Dbuild-tests=true -Dwerror=true -Dwarning_level=2 -Dzlib:warning_level=1 -Dlibelf:warning_level=1 && ninja -j32 install && meson test --num-processes 32" $buildstatus = $? Pop-Location diff --git a/lib/mesa/.gitlab-ci/windows/mesa_deps.ps1 b/lib/mesa/.gitlab-ci/windows/mesa_deps.ps1 index 0e2bc60a9..1e5e78d21 100644 --- a/lib/mesa/.gitlab-ci/windows/mesa_deps.ps1 +++ b/lib/mesa/.gitlab-ci/windows/mesa_deps.ps1 @@ -21,7 +21,7 @@ Write-Host "Installing Chocolatey packages" For ($i = 0; $i -lt 5; $i++) { choco install -y python3 --params="/InstallDir:C:\python3" $python_install = $? - choco install --allow-empty-checksums -y cmake git git-lfs ninja pkgconfiglite winflexbison --installargs "ADD_CMAKE_TO_PATH=System" + choco install --allow-empty-checksums -y cmake git git-lfs ninja pkgconfiglite winflexbison vulkan-sdk --installargs "ADD_CMAKE_TO_PATH=System" $other_install = $? $choco_installed = $other_install -and $python_install if ($choco_installed) { @@ -55,7 +55,7 @@ if (!$?) { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13; Get-Date -Write-Host "Cloning LLVM master" +Write-Host "Cloning LLVM release/12.x" git clone -b release/12.x --depth=1 https://github.com/llvm/llvm-project llvm-project if (!$?) { Write-Host "Failed to clone LLVM repository" @@ -81,7 +81,7 @@ Get-Date $llvm_build = New-Item -ItemType Directory -Path ".\llvm-project" -Name "build" Push-Location -Path $llvm_build.FullName Write-Host "Compiling LLVM and Clang" -cmd.exe /C 'C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && cmake ../llvm -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DCMAKE_INSTALL_PREFIX="C:\llvm-10" -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_OPTIMIZED_TABLEGEN=TRUE -DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_RUNTIMES=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_GO_TESTS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_BUILD_LLVM_C_DYLIB=OFF -DLLVM_ENABLE_DIA_SDK=OFF -DCLANG_BUILD_TOOLS=ON -DLLVM_SPIRV_INCLUDE_TESTS=OFF && ninja -j32 install' +cmd.exe /C 'C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && cmake ../llvm -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DCMAKE_INSTALL_PREFIX="C:\llvm-10" -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_TARGETS_TO_BUILD=AMDGPU;X86 -DLLVM_OPTIMIZED_TABLEGEN=TRUE -DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_RUNTIMES=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_GO_TESTS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DLLVM_BUILD_LLVM_C_DYLIB=OFF -DLLVM_ENABLE_DIA_SDK=OFF -DCLANG_BUILD_TOOLS=ON -DLLVM_SPIRV_INCLUDE_TESTS=OFF && ninja -j32 install' $buildstatus = $? Pop-Location if (!$buildstatus) { @@ -94,7 +94,7 @@ $libclc_build = New-Item -ItemType Directory -Path ".\llvm-project" -Name "build Push-Location -Path $libclc_build.FullName Write-Host "Compiling libclc" # libclc can only be built with Ninja, because CMake's VS backend doesn't know how to compile new language types -cmd.exe /C 'C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && cmake ../libclc -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER="/llvm-10/bin/clang-cl.exe" -DCMAKE_CXX_FLAGS="-m64" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_INSTALL_PREFIX="C:\llvm-10" -DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-;spirv64-mesa3d-" && ninja -j32 install' +cmd.exe /C 'C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && cmake ../libclc -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-m64" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_INSTALL_PREFIX="C:\llvm-10" -DLIBCLC_TARGETS_TO_BUILD="spirv-mesa3d-;spirv64-mesa3d-" && ninja -j32 install' $buildstatus = $? Pop-Location Remove-Item -Recurse -Path $libclc_build @@ -130,6 +130,17 @@ if (!$buildstatus) { } Get-Date +Write-Host "Downloading Vulkan-Runtime" +Invoke-WebRequest -Uri 'https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-runtime.exe' -OutFile 'C:\vulkan-runtime.exe' | Out-Null +Write-Host "Installing Vulkan-Runtime" +Start-Process -NoNewWindow -Wait C:\vulkan-runtime.exe -ArgumentList '/S' +if (!$?) { + Write-Host "Failed to install Vulkan-Runtime" + Exit 1 +} +Remove-Item C:\vulkan-runtime.exe -Force + +Get-Date Write-Host "Downloading Freeglut" $freeglut_zip = 'freeglut-MSVC.zip' diff --git a/lib/mesa/.gitlab-ci/windows/piglit_run.ps1 b/lib/mesa/.gitlab-ci/windows/piglit_run.ps1 index d965f51d0..3414fc2dc 100644 --- a/lib/mesa/.gitlab-ci/windows/piglit_run.ps1 +++ b/lib/mesa/.gitlab-ci/windows/piglit_run.ps1 @@ -1,6 +1,8 @@ $env:PIGLIT_NO_FAST_SKIP = 1 Copy-Item -Path _install\bin\opengl32.dll -Destination C:\Piglit\lib\piglit\bin\opengl32.dll +Copy-Item -Path _install\bin\libgallium_wgl.dll -Destination C:\Piglit\lib\piglit\bin\libgallium_wgl.dll +Copy-Item -Path _install\bin\libglapi.dll -Destination C:\Piglit\lib\piglit\bin\libglapi.dll # Run this using VsDevCmd.bat to ensure DXIL.dll is in %PATH% cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && py -3 C:\Piglit\bin\piglit.py run `"$env:PIGLIT_PROFILE`" $env:PIGLIT_OPTIONS $env:PIGLIT_TESTS .\results" diff --git a/lib/mesa/.gitlab-ci/windows/quick_gl.txt b/lib/mesa/.gitlab-ci/windows/quick_gl.txt index 89a582ead..052823d94 100644 --- a/lib/mesa/.gitlab-ci/windows/quick_gl.txt +++ b/lib/mesa/.gitlab-ci/windows/quick_gl.txt @@ -364,7 +364,6 @@ spec/!opengl 2.0/vertex-program-two-side/tcs-out, tes and fs: skip spec/!opengl 2.0/vertex-program-two-side/tes-out and fs: skip spec/!opengl 2.0/vertex-program-two-side/vs, gs and fs: skip spec/!opengl 2.0/vertex-program-two-side/vs, tcs, tes and fs: skip -spec/!opengl 2.1/fbo-mrt-alphatest-no-buffer-zero-write: crash spec/!opengl 3.0/bound-resource-limits: fail spec/!opengl 3.0/clearbuffer-depth-cs-probe: skip spec/!opengl 3.0/required-sized-texture-formats: fail @@ -2390,7 +2389,6 @@ spec/arb_texture_barrier/arb_texture_barrier-blending-in-shader 512 42 8 8 7: sk spec/arb_texture_barrier/arb_texture_barrier-blending-in-shader 512 42 8 8 8: skip spec/arb_texture_buffer_object/bufferstorage: skip spec/arb_texture_buffer_object/data-sync: fail -spec/arb_texture_buffer_object/get: fail spec/arb_texture_buffer_object/indexed: skip spec/arb_texture_buffer_object/negative-unsupported: skip spec/arb_texture_buffer_object/subdata-sync: fail @@ -4562,8 +4560,6 @@ spec/glsl-1.30/execution/tex-miplevel-selection texturegrad cubearray: skip spec/glsl-1.30/execution/tex-miplevel-selection texturelod cubearray: skip spec/glsl-1.30/execution/tex-miplevel-selection textureoffset 2darrayshadow: skip spec/glsl-1.50/built-in constants compatibility: skip -spec/glsl-1.50/execution/geometry/primitive-id-restart gl_line_loop ffs: fail -spec/glsl-1.50/execution/geometry/primitive-id-restart gl_line_loop other: fail spec/glsl-1.50/execution/geometry/primitive-types gl_triangle_strip: fail spec/glsl-1.50/execution/geometry/primitive-types gl_triangle_strip_adjacency: fail spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart gl_triangle_strip ffs: fail @@ -4753,9 +4749,9 @@ wgl/wgl-sanity: skip summary: name: results ---- -------- - pass: 13299 - fail: 538 - crash: 68 + pass: 13303 + fail: 535 + crash: 67 skip: 4126 timeout: 0 warn: 10 |