Commit graph

1664 commits

Author SHA1 Message Date
mageven
93710ed291 TZ: Fix loop condition in GetTZName (#1950)
Closes #1949
2024-02-22 19:15:30 -05:00
Caian Benedicto
76c1d46682 Fix inverted read only flag in transfer memory creation (#1945) 2024-02-22 19:15:30 -05:00
mageven
eae53fa371 Fix SL/SR typo in keyboard controller mapping (#1938) 2024-02-22 19:15:30 -05:00
gdkchan
c18df3c819 Fix alignment on CreateTransferMemoryStorage (#1937) 2024-02-22 19:15:30 -05:00
LDj3SNuD
b7b1cd6bd7 CPU (A64): Add Fmaxnmp & Fminnmp Scalar Inst.s, Fast & Slow Paths; with Tests. (#1894) 2024-02-22 19:15:30 -05:00
gdkchan
8dc031ad8e Enable parallel ASTC decoding by default (#1930) 2024-02-22 19:15:30 -05:00
gdkchan
c1010f9bfd Fix out of range exception when a invalid base lod is used (#1931) 2024-02-22 19:15:30 -05:00
Sera
8fe492ccbb Fix some GLXBadDrawable crashes on linux (#1900)
Fixes the crashes on linux when you stop emulation, and when you try to
exit the emulator while a game is running.
Also tested on windows without problems on my side.
2024-02-22 19:15:30 -05:00
gdkchan
c3fc68417e Reduce temporary copy/fill buffer size (#1926) 2024-02-22 19:15:30 -05:00
Ac_K
f049c125b7 am: Implement CreateHandleStorage and fixes (#1929) 2024-02-22 19:15:30 -05:00
mageven
877b873383 Emulate a circular zone for keyboard analog sticks (#1906) 2024-02-22 19:15:30 -05:00
pineappleEA
95bb02f75e Fix Linux Icon (#1927) 2024-02-22 19:15:29 -05:00
riperiperi
6d33b44e03 Implement lazy flush-on-read for Buffers (SSBO/Copy) (#1790)
* Initial implementation of buffer flush (VERY WIP)

* Host shaders need to be rebuilt for the SSBO write flag.

* New approach with reserved regions and gl sync

* Fix a ton of buffer issues.

* Remove unused buffer unmapped behaviour

* Revert "Remove unused buffer unmapped behaviour"

This reverts commit f1700e52fb8760180ac5e0987a07d409d1e70ece.

* Delete modified ranges on unmap

Fixes potential crashes in Super Smash Bros, where a previously modified range could lie on either side of an unmap.

* Cache some more delegates.

* Dispose Sync on Close

* Also create host sync for GPFifo syncpoint increment.

* Copy buffer optimization, add docs

* Fix race condition with OpenGL Sync

* Enable read tracking on CommandBuffer, insert syncpoint on WaitForIdle

* Performance: Only flush individual pages of SSBO at a time

This avoids flushing large amounts of data when only a small amount is actually used.

* Signal Modified rather than flushing after clear

* Fix some docs and code style.

* Introduce a new test for tracking memory protection.

Sucessfully demonstrates that the bug causing write protection to be cleared by a read action has been fixed. (these tests fail on master)

* Address Comments

* Add host sync for SetReference

This ensures that any indirect draws will correctly flush any related buffer data written before them. Fixes some flashing and misplaced world geometry in MH rise.

* Make PageAlign static

* Re-enable read tracking, for reads.
2024-02-22 19:15:29 -05:00
gdkchan
17dbc7a45e Support for resources on non-contiguous GPU memory regions (#1905)
* Support for resources on non-contiguous GPU memory regions

* Implement MultiRange physical addresses, only used with a single range for now

* Actually use non-contiguous ranges

* GetPhysicalRegions fixes

* Documentation and remove Address property from TextureInfo

* Finish implementing GetWritableRegion

* Fix typo
2024-02-22 19:15:29 -05:00
gdkchan
b7bbd3fc33 Fix mipmap base level being ignored for sampled textures and images (#1911)
* Fix mipmap base level being ignored for sampled textures and images

* Fix layer size and max level for textures

* Missing XML doc + reorder comments
2024-02-22 19:15:29 -05:00
Bruno Macabeus
8131347c0a settings: add Show Confirm Exist toggle (#1856) 2024-02-22 19:15:29 -05:00
gdkchan
18b8bf1ea8 Fix shader LOP3 predicate write condition (#1910)
* Fix LOP3 predicate write condition

* Bump shader cache version
2024-02-22 19:15:29 -05:00
Bruno Macabeus
ee0765d4ac android-fence: call callback when fence is invalid (#1881) 2024-02-22 19:15:29 -05:00
gdkchan
cef890bcc5 Implement shader CC mode for ISCADD, X mode for ISETP and fix STL/STS/STG with RZ (#1901)
* Implement shader CC mode for ISCADD, X mode for ISETP and fix STS/STG with RZ

* Fix STG too and bump shader cache version

* Fix wrong name

* Fix Carry being inverted on comparison
2024-02-22 19:15:29 -05:00
gdkchan
166eeb8f0b Implement clear buffer (fast path) (#1902)
* Implement clear buffer (fast path)

* Remove blank line
2024-02-22 19:15:29 -05:00
LDj3SNuD
4dd8f7f36c Add a simple Pools Limiter. (#1830)
* Added support for offline invalidation, via PPTC, of low cq translations replaced by high cq translations; both on a single run and between runs.

Added invalidation of .cache files in the event of reuse on a different user operating system.

Added .info and .cache files invalidation in case of a failed stream decompression.

Nits.

* InternalVersion = 1712;

* Nits.

* Address comment.

* Get rid of BinaryFormatter.

Nits.

* Move Ptc.LoadTranslations().

Nits.

* Nits.

* Fixed corner cases (in case backup copies have to be used). Added save logs.

* Not core fixes.

* Complement to the previous commit. Added load logs. Removed BinaryFormatter leftovers.

* Add LoadTranslations log.

* Nits.

* Removed the search and management of LowCq overlapping functions.

* Final increment of .info and .cache flags.

* Nit.

* Free up memory allocated by Pools during any PPTC translations at boot time.

* Nit due to rebase.

* Add a simple Pools Limiter.

* Nits.

* Fix missing JumpTable.RegisterFunction() due to rebase.

Clear MemoryStreams as soon as possible, when they are no longer needed.

* Code cleaning.

* Nit for retrigger Checks.

* Update Ptc.cs

* Contextual refactoring of Translator. Ignore resetting of pools for DirectCallStubs.

* Nit for retrigger Checks.
2024-02-22 19:15:29 -05:00
Caian Benedicto
d39309c906 Add support for inline software keyboard (#1868)
* Add background mode configuration to SoftwareKeyboardApplet

* Add placeholder text generator for Software Keyboard in background mode

* Add stub for GetIndirectLayerImageMap

* Fix default state of DecidedCancel response

* Add GUI text input to Software Keyboard in background mode

* Fix graphical glitch when Inline Software Keyboard appears

* Improve readability of InlineResponses class

* Improve code styling and fix compiler warnings

* Replace ServiceDisplay log class by ServiceVi

* Replace static readonly by const

* Add proper finalization to the keyboard applet in inline mode

* Rename constants to start with uppercase

* Fix inline keyboard not working with some games

* Improve code readability

* Fix code styling
2024-02-22 19:15:29 -05:00
Bruno Macabeus
4d571cd7ee ui: disable "Simulate Wake-up" when no game is running (#1863) 2024-02-22 19:15:29 -05:00
Steven Smith
0d24e580fc Only attempt to import common tickets. (#1886) 2024-02-22 19:15:29 -05:00
Ac_K
dead51d1ab pctl: Stub IsFreeCommunicationAvailable (#1893)
* pctl: Stub IsFreeCommunicationAvailable

This PR stub call IsFreeCommunicationAvailable since it's the same as call CheckFreeCommunicationPermission without a sets of an internal field.
I've fixed a wrong logic found while I'm checked the call by RE.

This fix #1883.

* Fix comments
2024-02-22 19:15:28 -05:00
gdkchan
08a4718651 Fix compute reserved constant buffer updates (#1892) 2024-02-22 19:15:28 -05:00
Ac_K
edecf74f8c Hotfix for Updater introduced in #1859 2024-02-22 19:15:28 -05:00
gdkchan
63e74aa41c Fix remap when handle is 0 (#1882)
* Nvservices cleanup and attempt to fix remap

* Unmap if remap handle is 0

* Remove mapped pool add from Remap
2024-02-22 19:15:28 -05:00
Ac_K
d44ef61d86 am: stub PresetLibraryAppletGpuTimeSliceZero (#1876) 2024-02-22 19:15:28 -05:00
gdkchan
01b8cd1820 Support conditional on BRK and SYNC shader instructions (#1878)
* Support conditional on BRK and SYNC shader instructions

* Add TODO comment and bump cache version
2024-02-22 19:15:28 -05:00
Ac_K
8cad2c0a7c gui: Refactoring Part 1 (#1859)
* gui: Refactoring Part 1

* Fix ProfileDialog.glade path

* Fix Application.Quit assert

* Fix TitleUpdateWindow parent

* Fix TitleUpdate selected item

* Remove extra line in TitleUpdateWindow

* Fix empty assign of Enum.TryParse

* Add Patrons list in the About Window

* update about error messages
2024-02-22 19:15:28 -05:00
EmulationFanatic
ed4261c331 Update README.md to reflect new features/changes in the emulator (#1869)
* Update README.md to reflect new features/changes in the emulator

* Update Discord links
2024-02-22 19:15:28 -05:00
mageven
94c6d912d0 Update missing sample timestamp in DebugPad (#1873) 2024-02-22 19:15:28 -05:00
Ac_K
5bc27044ec gpu: Implement missing texture formats (#1867)
* gpu: Implement Etc2Rgba texture format

* Add more format

* Fix wrong pixel format
2024-02-22 19:15:28 -05:00
LDj3SNuD
6dbe0bcbc7 CPU (A64): Add Pmull_V Inst. with Clmul fast path for the "1/2D -> 1Q" variant & Sse fast path and slow path for both the "8/16B -> 8H" and "1/2D -> 1Q" variants; with Test. (#1817)
* Add Pmull_V Sse fast path only, both "8/16B -> 8H" and "1/2D -> 1Q" variants; with Test.

* Add Clmul fast path for the 128 bits variant.

* Small optimisation (save 60 instructions) for the Sse fast path about the 128 bits variant.

* Add slow path, both variants. Fix V128 Shl/Shr when shift = 0.

* A32: Add Vmull_I P64 variant (slow path); not tested.

* A32: Add Vmull_I_P8_P64 Test and fix P64 variant.
2024-02-22 19:15:28 -05:00
Somebody Whoisbored
b2ca429574 Fix exefs mod loading with unpacked games (#1857)
* Add the ability to layeredfs individual exefs with mod loader

* Address code style issues

* Further adjustments to the mod loading

* Update Ryujinx.HLE/HOS/ModLoader.cs

Co-authored-by: Ac_K <Acoustik666@gmail.com>

* Apply suggestions from code review

Co-authored-by: Ac_K <Acoustik666@gmail.com>

* Address issue with checking for NSO existence (and code style fixes)

Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:15:28 -05:00
Ac_K
4220b44202 account: Services Refactoring (#1833)
* account: Services Refactoring

* Remove extra empty space

* Fix IProfile::Get

* address gdkchan feedback
2024-02-22 19:15:27 -05:00
Ac_K
dc5bb3e787 surfaceflinger: Fix fence callback issue (#1839)
This PR fixes a regression introduced in #1741. The actual implementation do the assumption of fences always exist and then registering the callback.
Homebrews may not use fences, so the code crashes when it try to register the callback.
2024-02-22 19:15:27 -05:00
Bruno Macabeus
e3c45c1b47 services: add "apm:p" (#1854)
* services: add "apm:p"

* review: change amp:p version range

* review: remove uneeded calls

* review: fix ImanagerPrivileged
2024-02-22 19:15:27 -05:00
Bruno Macabeus
c16b324b4f Remove long <-> ulong casts from Nvservices code (#1848)
* Remove long <-> ulong casts from Nvservices code

* review: fix lint
2024-02-22 19:15:27 -05:00
gdkchan
cfefd305f9 Update KAddressArbiter implementation to 11.x kernel (#1851)
* Update KAddressArbiter implementation to 11.x kernel

* InsertSortedByPriority is no longer needed
2024-02-22 19:15:27 -05:00
EmulationFanatic
c6aa37e17d Enable Profiled Persistent Translation Cache (PPTC) by default (#1844)
* Enable Profiled Persistent Translation Cache (PPTC) by default

Enables PPTC by default. Enough time has passed and enough games tested that it should be the preferred setting for 99.9% of games. In case we are worried about PPTC files being put on the user's disk, shader cache already does this by default and generates about the same size files on average, so this should no longer be a concern.

* Update config.json with PTC set to true

* Updated _schema.json to set PPTC to true.
2024-02-22 19:15:27 -05:00
Mary
05a55e05e7 amadeus: Update copyright year
Happy new Year
2024-02-22 19:15:26 -05:00
Mary
48774b5854 Distribute with OpenAL Soft on Windows (#1847)
* Distribute with OpenAL Soft on Windows

This remove dependency on OpenAL EA on Windows and allows to operate with both backend without any user interventions.

Co-authored-by: jduncanator <jduncanator@hotmail.com>

* Fix Atmosphere utf8 issue

Co-authored-by: jduncanator <jduncanator@hotmail.com>
2024-02-22 19:15:26 -05:00
Somebody Whoisbored
0e04f7e6dd Add the ability to add individual files exefs with mod loader (#1766)
Co-authored-by: Ac_K <Acoustik666@gmail.com>
2024-02-22 19:15:26 -05:00
AigleSpartiate
5dfc36680b Fix button press issue (#1836)
A small code change to fix the issue that was forcing the user to press the "Yes" button twice to restart Ryujinx after it had been updated, instead of only once.
2024-02-22 19:15:26 -05:00
EmulationFanatic
765ab33a1b Update InvalidMemoryRegionException.cs to abide by English rules. (#1834) 2024-02-22 19:15:26 -05:00
Ac_K
60ca749df4 Hotfix for #1814 2024-02-22 19:15:26 -05:00
LDj3SNuD
adb9691a02 Free up memory allocated by Pools during any PPTC translations at boot time. (#1814)
* Added support for offline invalidation, via PPTC, of low cq translations replaced by high cq translations; both on a single run and between runs.

Added invalidation of .cache files in the event of reuse on a different user operating system.

Added .info and .cache files invalidation in case of a failed stream decompression.

Nits.

* InternalVersion = 1712;

* Nits.

* Address comment.

* Get rid of BinaryFormatter.

Nits.

* Move Ptc.LoadTranslations().

Nits.

* Nits.

* Fixed corner cases (in case backup copies have to be used). Added save logs.

* Not core fixes.

* Complement to the previous commit. Added load logs. Removed BinaryFormatter leftovers.

* Add LoadTranslations log.

* Nits.

* Removed the search and management of LowCq overlapping functions.

* Final increment of .info and .cache flags.

* Nit.

* Free up memory allocated by Pools during any PPTC translations at boot time.

* Nit due to rebase.
2024-02-22 19:15:26 -05:00
LDj3SNuD
2b41291e78 Fix Vnmls_S fast path (F64: losing input d value). Fix Vnmla_S & Vnmls_S slow paths (using fused inst.s). Fix Vfma_V slow path not using StandardFPSCRValue(). (#1775)
* Fix Vnmls_S fast path (F64: losing input d value). Fix Vnmla_S & Vnmls_S slow paths (using fused inst.s).

Add Vfma_S & Vfms_S Fma fast paths.
Add Vfnma_S inst. with Fma/Sse fast paths and slow path.
Add Vfnms_S Sse fast path.

Add Tests for affected inst.s.

Nits.

* InternalVersion = 1775

* Nits.

* Fix Vfma_V slow path not using StandardFPSCRValue().

* Nit: Fix Vfma_V order.

* Add Vfms_V Sse fast path and slow path.

* Add Vfma_V and Vfms_V Test.
2024-02-22 19:15:26 -05:00