Module: Mesa
Branch: main
Commit: 2c17e446fb895337ab3d5a9171859d56d31ddec0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c17e446fb895337ab3d5a9171859d56d31ddec0

Author: Jesse Natalie <[email protected]>
Date:   Sat Aug 27 18:17:37 2022 -0700

ci/windows: Download DirectX Agility SDK and copy to piglit/vk-gl-cts

Reviewed-by: Giancarlo Devich <[email protected]>
Reviewed-by: Sil Vilerino <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19178>

---

 .gitlab-ci/windows/mesa_deps_test.ps1 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.gitlab-ci/windows/mesa_deps_test.ps1 
b/.gitlab-ci/windows/mesa_deps_test.ps1
index 9d9843b8aa5..cb3077e202e 100644
--- a/.gitlab-ci/windows/mesa_deps_test.ps1
+++ b/.gitlab-ci/windows/mesa_deps_test.ps1
@@ -135,5 +135,21 @@ Write-Host "Installing deqp-runner"
 $env:Path += ";$($env:USERPROFILE)\.cargo\bin"
 cargo install --git https://gitlab.freedesktop.org/anholt/deqp-runner.git
 
+Get-Date
+Write-Host "Downloading DirectX 12 Agility SDK"
+Invoke-WebRequest -Uri 
https://www.nuget.org/api/v2/package/Microsoft.Direct3D.D3D12/1.706.3-preview 
-OutFile 'agility.zip'
+Expand-Archive -Path 'agility.zip' -DestinationPath 'C:\agility'
+Remove-Item 'agility.zip'
+
+$piglit_bin = 'C:\Piglit\lib\piglit\bin'
+$vk_cts_bin = "$deqp_build\external\vulkancts\modules\vulkan"
+
+# Copy Agility SDK into subfolder of piglit and Vulkan CTS
+$agility_dest = New-Item -ItemType Directory -Path $piglit_bin -Name 'D3D12'
+Copy-Item 'C:\agility\build\native\bin\x64\*.dll' -Destination $agility_dest
+$agility_dest = New-Item -ItemType Directory -Path $vk_cts_bin -Name 'D3D12'
+Copy-Item 'C:\agility\build\native\bin\x64\*.dll' -Destination $agility_dest
+Remove-Item -Recurse 'C:\agility'
+
 Get-Date
 Write-Host "Complete"

Reply via email to