wgl: Refactor drivers to a libgallium_wgl.dll
authorJesse Natalie <jenatali@microsoft.com>
Wed, 1 Sep 2021 14:07:57 +0000 (07:07 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Wed, 8 Sep 2021 14:22:39 +0000 (07:22 -0700)
commitf36921effecca59b5dc38e7e1ef73a612dbe78d2
treec38c66686ae9fed3bf7cbc88a4dc89d5f79ea887
parente2bb111e02f9949b3c044cb9de024d87b96e5aac
wgl: Refactor drivers to a libgallium_wgl.dll

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>
.gitlab-ci/windows/piglit_run.ps1
src/gallium/meson.build
src/gallium/targets/libgl-gdi/libgl_gdi.c [deleted file]
src/gallium/targets/libgl-gdi/meson.build
src/gallium/targets/wgl/gallium_wgl.def [new file with mode: 0644]
src/gallium/targets/wgl/meson.build [new file with mode: 0644]
src/gallium/targets/wgl/wgl.c [new file with mode: 0644]