
I'd like to support EGL on Windows, using the same architecture as Linux. On Linux, libgallium_dri.so is a "megadriver," containing the Mesa Gallium state tracker, plus the actual driver implementations. Now, on Windows, libgallium_wgl.dll is a proper OpenGL ICD, and OpenGL32.dll is just a stub DLL which implements the wgl* APIs in terms of that ICD. This is the more "architecturally clean" way to share the state tracker between EGL and WGL. Reviewed By: Bill Kristiansen <billkris@microsoft.com> Reviewed-by: Charmaine Lee >charmainel@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12677>
28 lines
1.1 KiB
PowerShell
28 lines
1.1 KiB
PowerShell
$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
|
|
|
|
# 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"
|
|
|
|
py -3 C:\Piglit\bin\piglit.py summary console .\results | Select -SkipLast 1 | Select-String -NotMatch -Pattern ': pass' | Set-Content -Path .\result.txt
|
|
|
|
$reference = Get-Content ".\_install\$env:PIGLIT_PROFILE.txt"
|
|
$result = Get-Content .\result.txt
|
|
if (-Not ($reference -And $result)) {
|
|
Exit 1
|
|
}
|
|
|
|
$diff = Compare-Object -ReferenceObject $reference -DifferenceObject $result
|
|
if (-Not $diff) {
|
|
Exit 0
|
|
}
|
|
|
|
py -3 C:\Piglit\bin\piglit.py summary html --exclude-details=pass .\summary .\results
|
|
|
|
Write-Host "Unexpected change in results:"
|
|
Write-Output $diff | Format-Table -Property SideIndicator,InputObject -Wrap
|
|
|
|
Exit 1
|