On Sun, 19 Dec 2021, LIU Hao wrote:
在 2021-12-19 06:34, Martin Storsjö 写道:
These DLLs are available out of the box on arm32 and arm64 since
Windows 11.
However these DLLs themselves are only the main interface (containing
the fallback, essentially unusable, OpenGL 1.1 GDI implementation);
without a separate ICD (installable client driver), it's near useless.
Currently (Dec 2021), such a driver (implementing OpenGL on top of
D3D12) is installable in the "OpenCL and OpenGL Compatibility Pack" in
Microsoft Store (but it's only available for regular third party
applications if you install the Windows Insider version of it).
And even then, it's not necessarily available for all architectures.
(In a brief test, it seems like the driver is available for i686 and
aarch64 processes, but not for x86_64 or armv7).
By providing these, we risk that people porting software to Windows
10 on ARM accidentally end up relying on them (earlier, they got clear
link errors showing that these really aren't available), ending up
with executables that only run on Windows 11.
For some projects with existing support for Windows 10 on ARM, this
is handled by entirely disabling building of intermediate wrapper
libraries such as glew or libepoxy; then the main application only
detects the presence of glew or libepoxy, and disables OpenGL
functionality if not found. (This has been tested with VLC, where
the glew dependency already is hardcoded to not be built for these
targets, so this doesn't change anything for the build output of
VLC.)
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-crt/{lib64 => lib-common}/glu32.def | 0
mingw-w64-crt/{lib64 => lib-common}/opengl32.def | 0
mingw-w64-crt/libarm32/Makefile.am | 2 ++
mingw-w64-crt/libarm64/Makefile.am | 2 ++
4 files changed, 4 insertions(+)
rename mingw-w64-crt/{lib64 => lib-common}/glu32.def (100%)
rename mingw-w64-crt/{lib64 => lib-common}/opengl32.def (100%)
LGTM, too. Thanks.
Pushed, thanks.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public