Tony Wasserka
7a703e1176
Library Forwarding/GL: Enable stricter pointer parameter checks
2024-06-11 17:14:23 +02:00
Tony Wasserka
02df1a2924
Library Forwarding/GL: Avoid pointer array repacking for 64-bit guests
2024-06-11 17:14:23 +02:00
Tony Wasserka
efac7efc97
Library Forwarding/GL: Remap _XDisplay returned by glXGetCurrentDisplay
2024-06-11 17:14:23 +02:00
Tony Wasserka
d99b4a80c8
Library Forwarding/GL: Add glX support for 32-bit
2024-06-11 17:14:23 +02:00
Tony Wasserka
2a76744d30
Library Forwarding/GL: Add 32-bit support for most core GL APIs
2024-06-11 17:13:45 +02:00
Tony Wasserka
843b2d1969
Library Forwarding/GL: Assume void* always points to compatible data
2024-06-11 16:58:37 +02:00
Tony Wasserka
a114850c2a
Library Forwarding: Support GL forwarding with guest-libX11
2024-05-02 17:59:28 +02:00
Paulo Matos
2b4ec88dae
Whole-tree reformat
...
This follows discussions from #3413 .
Followup commits add clang-format file, script and blame ignore lists.
2024-04-12 16:26:02 +02:00
Tony Wasserka
7149da387a
Thunks: Annotate pointer parameters throughout all thunked libraries
2023-10-25 12:39:57 +02:00
Ryan Houdek
4ea34a9c22
Thunks: Fixes missing thunk librarie so versions
...
Some libraries were missing these version defines, which was causing
dlopen to fail.
This was causing thunks to break in pressure-vessel.
2022-10-24 20:59:54 -07:00
Tony Wasserka
cc8ef16240
Thunks/gen: Consolidate all generated code to one file per library per platform
2022-09-05 15:03:49 +02:00
Ryan Houdek
1051cd97cf
Merge pull request #1897 from Sonicadvance1/more_gl_thunk_symbols
...
Thunks: Extends libGL interface to support more functions
2022-08-09 08:18:49 -07:00
Ryan Houdek
80a209d6dc
Thunks: Make glXGetProcAddress self-query work
...
We can just have it return itself.
Unknown why some games do this, but it happens and is expected to work.
2022-08-09 03:42:27 -07:00
Ryan Houdek
125bb3afe1
Thunks: Extends libGL interface to support more functions
...
Some of these functions are missing that games rely on.
Only glGetVkProcAddrNV will cause us pain, so avoid it for now.
The rest are simple and at least glXWaitX fixes some games.
Fixes #1893
Fixes #1893
2022-08-09 02:00:52 -07:00
Ryan Houdek
ff1a5dd4c2
Thunks: Make unknown glXGetProcAddress non-fatal
...
Multiple games will query symbols that are leaked but we don't support.
It is safe to return nullptr in these cases.
Print a warning message still just in-case someone fails hard at GL.
2022-08-09 01:55:25 -07:00
Tony Wasserka
329d624a99
Thunks/gen: Use signature-based thunking of host function pointers
2022-08-08 16:08:46 +02:00
Tony Wasserka
cd05cdaa57
Thunks: Make GL guest thunks implicitly load libX11.so
...
Steam's gameoverlayrenderer.so relies on libX11 symbols to be available
without actually loading that library directly. This works on an unthunked
system since libGL.so depends on libGLX.so, which in turn pulls in libX11.so
at load-time. Adding a fake libX11 dependency to the libGL-guest thunks
reproduces this behavior.
2022-08-04 11:46:26 +02:00
Tony Wasserka
686895802a
Thunks/GL: Drop unused manual function implementations
...
These functions are annotated with fexgen::callback_stub nowadays, so
they don't need custom host endpoints anymore.
2022-07-07 17:33:31 +02:00
Tony Wasserka
fe2f54fc3d
Thunks/GL: Use guest-callable host function pointers to implement glXGetProcAddress
2022-06-24 11:56:36 +02:00
Tony Wasserka
f4dd1a895e
Thunks: Use libclang-based code generation for libGL
2021-12-10 11:24:58 +01:00
Stefanos Kornilios Mitsis Poiitidis
942b8549c6
Docs: Add tags to the source code
2021-03-30 12:21:18 +03:00
Stefanos Kornilios Mitsis Poiitidis
2425ab994b
Thunks: Generation script refactor, generic callbacks
2020-09-22 14:35:38 +03:00
Stefanos Kornilios Mitsis Poiitidis
db633b8394
Thunklibs: Add partial X11, SDL, GL, EGL, asound, cmake integration
2020-08-08 14:48:20 +03:00