Commit Graph
4503 Commits
Author SHA1 Message Date
junminlee2004 891612c865 shader_recompiler: Lower user clip planes to clip distances (#4799)
* shader_recompiler: Lower user clip planes to clip distances

* shader_recompiler: Skip user clip plane lowering when the guest exports clip distances

* vk_pipeline_serialization: Skip preloading permutations with conflicting indices

* shader_recompiler: Emulate lowered user clip planes on NVIDIA

* video_core: bind null clip planes when clipping is disabled
2026-08-08 09:54:12 +03:00
squidbus e080fdbd6e sdl_window: Skip camera initialization on macOS (#4812) 2026-08-07 19:51:56 +03:00
squidbus 4c3d578cc9 big_picture: Allow launching game in same process for testing (#4813) 2026-08-07 09:45:34 -07:00
Xupie ef91a55e90 add console language to game specific settings (#4811) 2026-08-06 17:53:22 -05:00
Stephen Miller 8bdec718b6 Init libScePad before libSceNpManager (#4809)
After some changes that happened at some point, logged in users are only properly registered as logged in after libScePad initializes. shadNet initialization relies on logged in users, so this needed fixing.
2026-08-06 18:06:17 +03:00
Valdis Bogdānsandw1naenator dff1aad042 Add experimental Windows static red-zone protection (#4802)
- Analyze EH function boundaries and relocate faultable guest instructions through red-zone-safe trampolines.
- Integrate Windows exception handling and existing CPU patches without an external debugger.
- Add a Windows-only per-game setting, coverage diagnostics, and configuration tests.

Co-authored-by: w1naenator <valdis.bogdans@hotmail.com>
2026-08-06 09:34:10 +03:00
georgemoralis e96b5786d4 Update CONTRIBUTING.md with AI usage rules
Added guidelines for AI usage in contributions.
2026-08-05 23:22:12 +03:00
Ultra dfda280c83 Minor mistype fix (#4807)
* free pr commit

* this PR is officially 50% clang commits :festiveparappa:
2026-08-05 12:39:29 +03:00
kalaposfos13 1a7905f5e3 Add a bunch of signal stuff qemu needs (#4797)
* add a bunch of signal stuff qemu needs

* fix build

* everyone is doing some bullshit except linux and freebsd

* openorbis strikes again

* better logging

* eintr

* fix sigaltstack nullptr param handling and fix errno-s

* eintr is eintr
2026-08-05 11:05:40 +03:00
Valdis Bogdānsandw1naenator 211afd9477 Big Picture: launch games in a clean process (#4806)
* Big Picture: launch games in a clean process

- prevent frontend renderer state from affecting game texture loading
- wait for Big Picture shutdown before initializing the game process
- reuse relaunch handling for IPC and native process creation
- preserve Unicode game paths on Windows
- correct SDL renderer and window destruction order

* Clang format fix

---------

Co-authored-by: w1naenator <valdis.bogdans@hotmail.com>
2026-08-05 10:05:12 +03:00
Kody Schram cdf2dbed6c Appends last time played for each game in play_time.txt (#4801)
* UpdatePlayTime now also appends unix epoch after playtime in play_time.txt

* Added explicit include of ctime, cleaned variable initialization

* Fix clang formatting
2026-08-05 07:37:10 +03:00
Stephen Miller e06e4ab0fd Fix (#4795) 2026-08-03 09:58:55 +03:00
KyoskiiandKyoskii edac3c2967 Add draw call and dispatch counts to the frame info overlay (#4791)
Shows a running average, since the raw per frame count changes too fast to read
while playing.

Co-authored-by: Kyoskii <kyoskiyexil@gmail.com>
2026-08-02 18:18:25 +03:00
junminlee2004 e1cf475263 imgui: only redraw for visible content to fix external fps counters (#4788) 2026-08-01 16:59:32 +03:00
Kravickas f0c6ffe15b Fix cube array layer in FixCubeCoords (#4784) 2026-08-01 01:02:42 -07:00
Alexandre Bouvier 65c9463c6a cmake: allow system zarchive library (#4786) 2026-07-31 20:05:45 -07:00
squidbus 717ff76f3a videodec: Flush codec buffers on packet EOF (#4785) 2026-07-31 19:41:20 -07:00
kalaposfos13 bf4809fed2 Rewrite kernel event flags (#4772)
* a hopefully not too questionable attempt at rewriting event flags

* remove obsolete error message

* misc fixes
2026-07-31 01:06:13 +03:00
Connor Garey 34e0f83998 Bump derivation version number to 0.17.1 (#4777) 2026-07-30 17:05:13 -05:00
georgemoralis 75073ab24c starting 0.17.1 WIP 2026-07-31 00:30:44 +03:00
georgemoralis 5a4373c80e tagged 0.17.0 release v.0.17.0 2026-07-30 23:48:02 +03:00
Vladislav Mikhalin 57e4da0376 avplayer: lock state shile starting (#4775) 2026-07-30 21:31:20 +03:00
georgemoralis e7eb1da596 Trophy fix (#4774)
* trophies cleanup and fixes

* even more trophy fixes for stephen
2026-07-30 19:40:12 +03:00
Masamune3210 24e68bafde Fix emulator read issues with WinFSP/rclone storage (#4766)
* Fix emulator being unable to read from WinFSP/rclone backed storage

* fix code style error

* add comment explaining code change
2026-07-29 18:38:53 +03:00
Arthur Cuesta cc728e1c7c input: reduce pad state latency for single-sample reads (#4508)
* input: reduce pad state latency for single-sample reads

* Restore original disconnected pad handling

* input: restore axis smoothing default in FinalizeUpdate

Explicitly passing false to GameController::Axis() unconditionally
disabled smoothing for all input sources. Controller hardware is
unaffected (the <16-unit guard in UpdateAxisSmoothing already skips
interpolation for fine-grained inputs), but KBM users rely on it for
smooth analog motion (e.g. Bloodborne). Revert to the default smooth=true.

* input: correct controller state copyright year
2026-07-29 10:31:19 +03:00
Marcin Mikołajczyk 9894036b3f Implement a fragment shader emulating clip distance on NVIDIA (#4511)
* Implement a fragment shader emulating clip distance on NVIDIA

* Rework clip distance emulation after review
2026-07-28 22:46:40 +03:00
georgemoralis b45b289761 Abstract FS (#4749)
* abstract fs part1

* ops ifile :P

* added backedn to fs/file_system

* memory handling for non hosted backends

* remove ZArchive

* total remove

* make linux happy

* refactor loader to support backends

* AVIO streamer for ffmpeg

* Improved IterateDirectory so it can getdents in zarchieve works

* support for fstat in zachieve

* fixed module loading

* fs : added ReadFile

* improve file reading

* fixed trophy extraction , npbind,playgo

* argg

* fixed headers

* zarchive improvements for concurrent access

* playgo fix

* system service fix

* fixed restart from zar

* fixed save data icon read from zarchive

* fonts fix

* some stephen's comments fixups

* improved

* fixed rest of stephen's comments

* even more stephen review fixes

* possible linux fix

* fixed stephen's issue with multi games

* added thread worker to zarchive to solve some race conditions videos should be working fine now

* fixed paths for updates,mods

* fixes for updates , splash screen , icon

* fixed case sentitive issues in linux?
2026-07-28 20:05:58 +03:00
Arthur Cuesta 4f89152f93 video_core: Respect depth write state for register clears (#4767) 2026-07-28 16:52:47 +03:00
Vladislav Mikhalin dc5a33d6f1 avplayer: improve sync between audio and video (#4761) 2026-07-26 22:13:24 +03:00
Stephen Miller d976c33ca8 Use pthread* instead of std::mutex in PthreadOnce (#4758)
* Use pthread* instead of std::mutex in PthreacOnce

mutex goes unused, so this is all that needs fixing for this to be accurate. pthread_once struct is something guest applications can use, so it's relatively valuable to have it done correctly.

* Some days I wonder how absent-minded I can be

oops
2026-07-25 15:14:39 -07:00
Kravickas 0afb317afe video_core: Implement T# min_lod (VK_EXT_image_view_min_lod) (#4756)
* Implement min_lod support in image view creation

* Add min_lod member to ImageViewInfo struct

* Add ImageViewMinLod feature support

* Add support check for minLod feature

* log

* Update FindView to use modified lookup_info

* cleanup

* Adress comments

more cleanup
2026-07-25 14:49:48 -07:00
Niram7777 4dc3cf83e4 Log option for flushing (#4755) 2026-07-25 15:19:59 +03:00
Vladislav Mikhalin 1ce5c2b5e6 avplayer: fixes to stack usage (#4754) 2026-07-25 08:59:23 +03:00
squidbus d392abed77 externals: Update mesa-kosmickrisp to latest (#4606) 2026-07-24 22:03:02 +03:00
Stephen Miller 38272a44b2 Miscellaneous renderer fixes (#4751)
* Change buffer sharp struct

Hardware testing confirms that the last 4 bits of base_address (which would be outside the GPU address space) are ignored.

* Do not bind buffers with an address of 0

We check for this in most places, but apparently not here.

* Log fault addresses in SrtWalkerSignalHandler

* Bump SRT walker patch to warning

Whenever this hack triggers, there's usually more trouble. Not sure why it's a debug, but it should at least be a warning to alert developers.

* Revert BufferCache::ObtainBuffer "optimization"

Was a change done for performance in BB, but it broke UE games.
2026-07-24 20:34:22 +03:00
Valdis Bogdānsandw1naenator 26f4270174 R&C menu Wait: Unreachable code fix (Syncronization race) (#4045)
* kernel: Enhance condition variable wait and signal handling with improved timeout logic and error checks

* kernel: Enhance logging in condition variable and mutex handling for better debugging

* Add vectored exception handler stack support for Windows

* I love you, CLang!

* Fix the resource release order in Pools::ReleaseContents.
This file was accidentally omitted from the previous commit.

* Implement exception stack management for Windows threads

* Fix stale pthread condvar wakes across platforms

* kernel: align pthread synchronization with libkernel

Updated:
- Replace generation-based condvar wakes with PS4-style FIFO and deferred wake behavior.
- Rework semaphore waits, posts, cancellation, and timeout races.
- Harden mutex ownership and Windows VEH stack lifecycle.

Added:
- pthread cancellation, cancel-type, testcancel, and timed-join exports.
- Native cross-thread cancellation delivery on Windows, Linux, and macOS.
- Relative timed semaphore waits.

* kernel: isolate synchronization race fixes

Remove unrelated VEH stack and shader changes, keeping this branch focused on pthread synchronization and cancellation behavior.

* some updates.

---------

Co-authored-by: w1naenator <valdis.bogdans@hotmail.com>
2026-07-24 09:33:15 +03:00
Stephen Miller 8161049f22 Lock priority pending ops mutex in PopPendingOperations (#4748)
Thanks to recent changes to readbackLinearImages, we get a lot more of these pending ops, and a lot more of these PopPendingOperations calls. This exposed a race condition where calls to PopPendingOperations would run simultaneously with our PriorityPendingOpsRunner threads, and potentially call a callback while a runner pops it off the pending ops queue.
2026-07-23 23:09:39 +03:00
Stephen Miller aca3c63634 Kernel.Fs: Use intermediate buffer for storing file read data before copying to host memory (#4742)
* Read files into a host buffer, then copy to guest.

For some reason this might fix the fread errors we see?

* Reduce unnecessary logging

* Assert on failed malloc

No reason not to do this.

* Use a static vector instead of allocating each read

* Make file_buf thread local

Shouldn't matter, but prevents any possible concurrency issues (though ReadFile was always called under a lock anyway)

* Assert on failure instead of logging an error

Also adds checks to other unchecked reads and writes

* Flush on all writes

Might as well do this while I'm here.
2026-07-23 21:00:11 +02:00
Vladislav Mikhalin 0f9b689058 avplayer: fixes to streams and frame buffers (#4747) 2026-07-23 21:17:13 +03:00
Xupie 3730a53a53 Audio3d: Refactor mix queue logic for advance and flush (#4745)
* move mixing into own method
log errors in ConvertAndEnqueue

* mutex
2026-07-23 12:12:03 +03:00
Vladislav Mikhalin b124e438c4 avplayer: fixes for frame dimensions (#4741)
* avplayer: align frame sizes to 16

* align pitch to 64, calc num audio buffers

* green line rebranding into black line

* extend data to the bottom of the video, sync vdec impl

* fixed build
2026-07-23 11:34:10 +03:00
Stephen Miller dee3a0437d Use IsValidMapping instead of IsValidGpuMapping (#4746)
Was hoping to get away with lower overhead, but we need to have a lower-bounded check too, or Windows with it's somewhat sparse address space will have issues with host mappings going through CopySparseMemory and asserting.

Intentionally not checking size, as the more robust mapping check would be a huge performance loss for a hot code path like this.
2026-07-22 18:14:29 -07:00
Stephen Miller cca6405c3e Use CopySparseMemory for StreamBuffer::Copy on guest addresses (#4744) 2026-07-22 16:25:21 -07:00
Stephen Miller 9f31e643f5 Queue small tiled images for download (#4743)
* Helps with rendering in some UE4 titles, provided you enable readbackLinearImages

* Clang
2026-07-22 16:12:14 -07:00
Arthur Cuesta 5c4b998f40 [Frontend] Polish fullscreen startup behavior (#4539)
Create the window directly in fullscreen when configured, so there is
no visible windowed -> fullscreen transition for the compositor to
animate. Refresh the cached window size after SDL_SyncWindow so the
first swapchain and the splashscreen use the real drawable size, handle
enter/leave fullscreen events like resizes, and fix a dead error check
on the unsigned display id.
2026-07-21 19:13:04 +03:00
MathieuARS 06d4872c55 shader_recompiler: propagate V_ADD_I32 carry-out (#4736) 2026-07-21 16:20:23 +03:00
MathieuARS 4c72de0732 core: initialize NGS2 rack query output (#4735) 2026-07-20 20:49:49 +03:00
Stephen Miller 4757939142 texture_cache: Fix MipOf and SliceOf checks (#4734) 2026-07-19 21:46:08 -07:00
georgemoralis 4c0d869adc Invitation Dialog Fix (#4732)
* fixed accept invitation dialog possible freeze

* Added cancel button if list is empty
2026-07-19 22:14:34 +03:00
squidbus a9e825ed3f ajm: Prevent AT9 data overread crashes (#4733) 2026-07-19 02:45:26 -07:00