Ryan Houdek
8b202b0ebf
Ioctl32: Fix DRM_IOCTL_WAIT_VBLANK
...
Oops. Used the incorrect ioctl for this one. Copy and paste fail.
2022-07-04 18:14:07 -07:00
Ryan Houdek
6d2f98a379
Merge pull request #1822 from Sonicadvance1/check_binfmt_misc_conflict
...
CMake: Check for binfmt_misc conflicts before install
2022-07-02 01:38:37 -07:00
Ryan Houdek
84379b5fdf
CMake: Check for binfmt_misc conflicts before install
...
Check for qemu and box binfmt_misc file conflicts before the
`binfmt_misc` install command.
This ensures if you're building from source that you won't inadvertently
install conflicting binfmt_misc files, breaking program execution.
2022-07-01 13:42:45 -07:00
Ryan Houdek
d005fdcd03
Merge pull request #1823 from Sonicadvance1/classify_arm
...
unittests: Classify CPU based on CPU features
2022-06-30 23:34:36 -07:00
Ryan Houdek
a97fb2f34f
Merge pull request #1825 from Sonicadvance1/disable_posix_flake
...
unittests: Disable known flake in posix tests
2022-06-30 23:34:22 -07:00
Ryan Houdek
af32228e38
unittests: Disable known flake in posix tests
...
Interpreter is flakey here, likely due to some race, but is periodically
fails and makes CI red.
2022-06-30 14:41:14 -07:00
Ryan Houdek
8b35275ec1
unittests: Classify CPU based on CPU features
...
Instead of relying on runner features, classify based on CPU features.
This fixes an annoying issue where if running unit tests locally without
it set then you get an unexpected failure.
Fixes #1807
2022-06-30 13:55:38 -07:00
Ryan Houdek
302a6c96ff
Merge pull request #1818 from FEX-Emu/skmp/fix-guest-h
...
ThunkLibs: Fix Guest.h
2022-06-30 10:02:48 -07:00
Stefanos Kornilios Misis Poiitidis
f4a4b2c14b
ThunkLibs: Fix Guest.h
2022-06-30 14:08:01 +03:00
Stefanos Kornilios Mitsis Poiitidis
88b94bef54
Merge pull request #1812 from FEX-Emu/skmp/add-thunks-islibloaded
...
Thunks: Add fex:is_lib_loaded
2022-06-30 04:45:37 +00:00
Stefanos Kornilios Mitsis Poiitidis
751b66d45d
Merge pull request #1816 from Sonicadvance1/fix_vulkan_debug_report
...
Thunks/vulkan: Disable debug report callback
2022-06-30 04:43:43 +00:00
Stefanos Kornilios Mitsis Poiitidis
ae6a57e667
Merge pull request #1815 from Sonicadvance1/fix_wine_preloader
...
Config: Fixes AppConfig for wine-preloader
2022-06-30 04:43:37 +00:00
Stefanos Kornilios Mitsis Poiitidis
9110546d34
Merge pull request #1814 from Sonicadvance1/pressure_vessel_fexserver_fix
...
FEXServerClient: When running under pressure-vessel don't use FEXServer rootfs
2022-06-30 04:43:26 +00:00
Stefanos Kornilios Mitsis Poiitidis
1f1d0706dd
Merge pull request #1813 from Sonicadvance1/fexserver_changes
...
FEXServer: Minor changes
2022-06-30 04:43:16 +00:00
Ryan Houdek
a82d41ee22
Thunks/vulkan: Disable debug report callback
...
This was checking for the wrong debug structure and it wasn't actually
unlinking it correctly from the linked list.
Since it was talking directly to a_0 instead of the current modifying
struct.
Instead of having a stubbed debug report struct, we can just remove the
structure from the linked list. Since we are already abusing a const
cast there anyway.
Fixes Vulkan thunks on Snapdragon.
2022-06-29 20:02:52 -07:00
Ryan Houdek
e8e70828d1
Config: Fixes AppConfig for wine-preloader
...
When wine-preloader is executed it doesn't do an execve to passed in
wine program. It will instead map the executable directly in to memory
and start executing it.
This way we end up with a program executing like `wine-preloader
<absolute wine path> Game.exe`
This now handles the wine-preloader case so we can get the correct
application profile here.
2022-06-29 20:00:32 -07:00
Ryan Houdek
b7a58fdb8a
FEXServerClient: When running under pressure-vessel don't use FEXServer rootfs
...
pressure-vessel overrides our rootfs when it does a pivot_root.
Since we are still communicating to the FEXServer we were pulling the
configured rootfs.
Instead check if we are in pressure vessel and avoid doing that.
This fixes FEX running under pressure-vessel.
(There may be some implications to this down the road with code caching
but let's worry about that later)
2022-06-29 19:57:07 -07:00
Ryan Houdek
dc9fde8fae
FEXServer: Change server lock fifo to regular file
...
This doesn't need to be a FIFO.
Resolves an issue of trying to run a rootfs from a fex config folder mapped over nfs/sshfs.
2022-06-29 13:46:49 -07:00
Ryan Houdek
c0cf4f6a61
FEXServer: Change socket pathname to include euid
...
Just to ensure the socket path is unique per user.
Noticed this while running independent FEXServers with multiple users.
2022-06-29 13:44:48 -07:00
Stefanos Kornilios Misis Poiitidis
21fc6bedcb
Thunks: Add fex:is_lib_loaded
2022-06-29 19:20:08 +03:00
Ryan Houdek
ad6fd5ab72
Merge pull request #1804 from neobrain/fix_cmake_thunks_portability
...
Allow building thunks on a wider range of platforms
2022-06-29 02:08:55 -07:00
Ryan Houdek
0f696c6092
Merge pull request #1811 from FEX-Emu/skmp/fix-vixl-assert
...
Dispatcher/Arm64: Fix vixl assert
2022-06-29 02:08:08 -07:00
Stefanos Kornilios Misis Poiitidis
9af3bc1864
Dispatcher/Arm64: Fix vixl assert
2022-06-29 10:41:24 +03:00
Ryan Houdek
b020e593a5
Merge pull request #1802 from Sonicadvance1/fexserver_wait
...
FEXServer: Adds -w option for waiting on current FEXServer
2022-06-28 09:33:31 -07:00
Tony Wasserka
4771a340f5
Merge pull request #1803 from neobrain/fix_vulkan_debug_report
...
ThunkLibs/vulkan: Work around lack of generic callback support in VK_EXT_debug_report
2022-06-28 16:39:37 +02:00
Stefanos Kornilios Mitsis Poiitidis
4449b60459
Merge pull request #1787 from FEX-Emu/skmp/gdb-jit-integration
...
gdb: jit integration
2022-06-27 11:57:40 +00:00
Stefanos Kornilios Misis Poiitidis
4139332ad9
GDBSymbols: Cleanups
2022-06-27 14:44:07 +03:00
Stefanos Kornilios Mitsis Poiitidis
30a28ff1ad
Merge pull request #1801 from FEX-Emu/skmp/remove-thunk-warnings
...
ThunkLibs: silence warnings
2022-06-27 10:35:43 +00:00
Tony Wasserka
498d0fc145
CMake: Use toolchain files to set up x86 cross compilation
2022-06-25 14:00:36 +02:00
Tony Wasserka
4a547fe95f
Thunks/CMake: Link against clang-cpp instead of clangTooling
2022-06-25 13:54:12 +02:00
Tony Wasserka
ca906589d4
Thunks/CMake: Automatically discover the clang resource directory
2022-06-25 13:53:48 +02:00
Tony Wasserka
8bafae2262
ThunkLibs/vulkan: Work around lack of generic callback support in VK_EXT_debug_report
2022-06-25 12:44:58 +02:00
Tony Wasserka
4ef82c82b5
Revert "Thunks/vulkan: Disable support for debug extensions as they require callback support"
...
This reverts commit c04d2409da85805d6781ed4a795a91a4850cf7df.
2022-06-25 11:48:39 +02:00
Ryan Houdek
e03d253310
FEXServer: Adds -w option for waiting on current FEXServer
...
It can be useful to know in tooling when the current active FEXServer
has exited.
Two things can happen when this command is run.
No FEXServer is active, returns immediately.
A FEXServer is active, we query for a pidfd from the active server, then
we wait until it exits.
Both instances of this is valid to use.
2022-06-24 22:56:13 -07:00
Stefanos Kornilios Misis Poiitidis
48c45da2de
ThunkLibs: silence warnings
2022-06-25 08:27:57 +03:00
Ryan Houdek
04a1ac967c
Merge pull request #1760 from neobrain/feature_guest_callable_hostptrs
...
Thunks: Support returning host function pointers to the guest
2022-06-24 18:22:24 -07:00
Ryan Houdek
aa17f64593
Merge pull request #1799 from FEX-Emu/skmp/fix-get_fdpath
...
FDUtils: Fix get_fdpath
2022-06-24 16:42:30 -07:00
Stefanos Kornilios Misis Poiitidis
ae5cfcc249
Symbols: Add SymName function
2022-06-24 19:38:40 +03:00
Stefanos Kornilios Misis Poiitidis
8f578b57f2
GDBSymbols: Cleanups
2022-06-24 17:02:39 +03:00
Stefanos Kornilios Misis Poiitidis
3871646611
GDBSymbols: Add gdb reader for fex, GDBSymbols option to enable
2022-06-24 16:27:16 +03:00
Stefanos Kornilios Mitsis Poiitidis
48a574dfd3
FDUtils: Fix get_fdpath
2022-06-24 16:11:10 +03:00
Tony Wasserka
ec49100c63
Thunks/CMake: Remove now unneeded helper functionality
...
This was needed for libvulkan_device. With libvulkan thunked directly now,
there is no further use of this code.
2022-06-24 11:56:36 +02:00
Tony Wasserka
c04d2409da
Thunks/vulkan: Disable support for debug extensions as they require callback support
2022-06-24 11:56:36 +02:00
Tony Wasserka
b93b713179
Thunks/vulkan: Thunk libvulkan directly instead of libvulkan_device
2022-06-24 11:56:36 +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
599f8f99ed
Thunks/gen: Add support for thunking APIs that return host function pointers
...
Interface definitions must enable this functionality by enclosing functions
that may be called through function pointers in a namespace annotated with
`fexgen::indirect_guest_calls`. The guest thunk must further link any host
function pointers to a guest-side instance of CallHostThunkFromRuntimePointer.
2022-06-24 11:56:36 +02:00
Tony Wasserka
b1b338ed5a
Thunks: Simplify guest helper macros
2022-06-24 11:56:36 +02:00
Ryan Houdek
e4d659a619
Merge pull request #1797 from FEX-Emu/skmp/remove-used-irs
...
IR: Remove GuestCallDirect, GuestCallIndirect
2022-06-23 10:45:01 -07:00
Stefanos Kornilios Misis Poiitidis
9ce94266e1
IR: Remove GuestCallDirect, GuestCallIndirect
2022-06-23 19:46:25 +03:00
Ryan Houdek
5a19425b28
Merge pull request #1792 from Sonicadvance1/fexserver
...
FEXServer: Adds new FEXServer service
2022-06-23 09:25:29 -07:00