Commit graph

2549 commits

Author SHA1 Message Date
EmulationFanatic
7882e4b419 Update bug report template (#3676)
Adds some verbiage to indicate that game-specific issues should be posted instead on the game compatibility list, unless it is a provable regression.
2024-02-22 19:16:39 -05:00
TSRBerry
90c20d1dcb Bsd: Fix NullReferenceException in BsdSockAddr.FromIPEndPoint() (#3652)
* Bsd: Fix NullReferenceException in BsdSockAddr.FromIPEndPoint()

Allows "Victor Vran Overkill Edition" to boot with guest internet access enabled.
Thanks to EmulationFanatic for testing this for me!

* Bsd: Return proper error code if RemoteEndPoint is null

* Remove whitespace from empty line

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:16:39 -05:00
riperiperi
c4df2adf7b Change vsync signal to happen at 60hz, regardless of swap interval (#3642)
* Change vsync signal to happen at 60hz, regardless of swap interval

* Update Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Fix softlock when toggling vsync

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:16:39 -05:00
Mary
ff3865d721 bsd: Fix Poll(0) returning ETIMEDOUT instead of SUCCESS
This was an oversight of the implementation.
2024-02-22 19:16:39 -05:00
Mary
790a503915 sfdsnres: fix endianess issue for port serialisation 2024-02-22 19:16:39 -05:00
Mary
d51a8ca41c Address gdkchan's comment 2024-02-22 19:16:39 -05:00
Mary
a959778588 account: Implement LoadNetworkServiceLicenseKindAsync
This is needed to run Pokemon Legends Arceus 1.1.1 with guest internet enabled.

The game still get stuck at loading screen.
2024-02-22 19:16:38 -05:00
TSRBerry
babdc79feb Bsd: Fix ArgumentOutOfRangeException in SetSocketOption (#3633)
* Bsd: Fix ArgumentOutOfRangeException in SetSocketOption

* Ensure option level is Socket before checking for SoLinger
2024-02-22 19:16:38 -05:00
mageven
a6a45dd582 Replace image format magic numbers with enums (#3631)
* Replace magic constants with enums

* Extra formatting

* Lower case ASTC dimensions

* Use uint for VertexAttributeFormat
2024-02-22 19:16:38 -05:00
txorion
be90fd54b8 Updates Japanese localization for the Avalonia UI (#3635) 2024-02-22 19:16:38 -05:00
gdkchan
8ccd7145de Optimize kernel memory block lookup and consolidate RBTree implementations (#3410)
* Implement intrusive red-black tree, use it for HLE kernel block manager

* Implement TreeDictionary using IntrusiveRedBlackTree

* Implement IntervalTree using IntrusiveRedBlackTree

* Implement IntervalTree (on Ryujinx.Memory) using IntrusiveRedBlackTree

* Make PredecessorOf and SuccessorOf internal, expose Predecessor and Successor properties on the node itself

* Allocation free tree node lookup
2024-02-22 19:16:38 -05:00
aegiff
cf96f7ae3a Update Turkish Translation (#3498)
Translated newly added lines and polished older entries.
2024-02-22 19:16:38 -05:00
Niwu34
fb04ffa0c4 Update de_DE.json (#3502)
* Update de_DE.json

* Update de_DE.json

* Update de_DE.json

* Update de_DE.json

* Update de_DE.json

* Update de_DE.json

* Update de_DE.json

* Another one

* Update de_DE.json

* addressed reviews

Co-Authored-By: Miepee <38186597+Miepee@users.noreply.github.com>

* welp

Co-Authored-By: Miepee <38186597+Miepee@users.noreply.github.com>

* Update de_DE.json

* Update de_DE.json

quick update with the latest changes

Co-Authored-By: Miepee <38186597+Miepee@users.noreply.github.com>

* Update de_DE.json

Co-Authored-By: Miepee <38186597+Miepee@users.noreply.github.com>

Co-authored-by: Miepee <38186597+Miepee@users.noreply.github.com>
Co-authored-by: reloxx13 <reloxx@interia.pl>
2024-02-22 19:16:38 -05:00
Narugakuruga
821a7bc4b5 Update zh_CN.json (#3598)
* Update zh_CN.json

* Update zh_CN.json

* Update zh_CN.json

* Update zh_CN.json

* Delete zh_CN.json

* fix crash

* Update zh_CN.json

* Update zh_CN.json

* Update zh_CN.json

* Update zh_CN.json

* Update zh_CN.json
2024-02-22 19:16:38 -05:00
Luna
95885d8535 Avalonia - Add Polish Translation (#3569)
* Update Ryujinx.Ava.csproj

* Update MainWindow.axaml

* Create pl_PL.json

* Update pl_PL.json

* Update pl_PL.json

* Update pl_PL.json

* Update pl_PL.json

* PPTC wording changes

adding PPTC changes

Co-authored-by: Clara <moonbowjelly@gmail.com>
2024-02-22 19:16:38 -05:00
MetrosexualGarbodor
7aa5b06b3e Avalonia - Display language names in their corresponding language under "Change Language" (#3490)
* change languages to their native names

* fix Chinese language names

* Update MainWindow.axaml
2024-02-22 19:16:38 -05:00
Mary-nyan
7a573dbb8d bsd: Fix Poll writting in input buffer (#3630)
This is a very old oversight on our Poll implementation.
This worked so far reliably because games and homebrews pass the same
buffer as input and output.
2024-02-22 19:16:38 -05:00
gdkchan
1188143129 Fast path for Inline-to-Memory texture data transfers (#3610)
* Fast path for Inline-to-Memory texture data transfers

* Only do it for block linear textures to be on the safe side
2024-02-22 19:16:38 -05:00
Ac_K
2efc4c01ec pctl: Implement EndFreeCommunication
This PR Implement `EndFreeCommunication` (checked by RE). Nothing more.

Closes #2420
2024-02-22 19:16:38 -05:00
Mary-nyan
003a0d7c1f misc: Fix missing null terminator for strings with pchtxt (#3629)
As title say.
2024-02-22 19:16:37 -05:00
merry
24348d8876 ARMeilleure: Hardware accelerate SHA256 (#3585)
* ARMeilleure/HardwareCapabilities: Add Sha

* ARMeilleure/Intrinsic: Add X86Sha256Rnds2

* ARmeilleure: Hardware accelerate SHA256H/SHA256H2

* ARMeilleure/Intrinsic: Add X86Sha256Msg1, X86Sha256Msg2

* ARMeilleure/Intrinsic: Add X86Palignr

* ARMeilleure: Hardware accelerate SHA256SU0, SHA256SU1

* PTC: Bump InternalVersion
2024-02-22 19:16:37 -05:00
gdkchan
4ba02ae921 Implement some 32-bit Thumb instructions (#3614)
* Implement some 32-bit Thumb instructions

* Optimize OpCode32MemMult using PopCount
2024-02-22 19:16:37 -05:00
RKennedy9064
ed81c03890 Update PPTC dialog text to match label and tooltip (#3618)
* Update PPTC dialog text to match label and tooltip

* Update to requested text

* Reverting spaces

* Adding newline back in
2024-02-22 19:16:37 -05:00
MutantAura
f7ec30f47f Check if game directories have been updated before refreshing GUI (#3607)
* Check if game directories have been updated before refreshing list on save.

* Cleanup spacing

* Add Avalonia and reset value after saving

* Fix Avalonia

* Fix multiple directories not being added in GTK
2024-02-22 19:16:37 -05:00
gdkchan
03f70a9321 Use RGBA16 vertex format if RGB16 is not supported on Vulkan (#3552)
* Use RGBA16 vertex format if RGB16 is not supported on Vulkan

* Catch all shader compilation exceptions
2024-02-22 19:16:37 -05:00
EmulationFanatic
69c31b01cf Change 'Purge PPTC Cache' label & tooltip to reflect function behavior (#3601)
* Change PPTC purge label & tooltip

* Change Avalonia labels
2024-02-22 19:16:37 -05:00
Nicholas Rodine
664a36fdff A few minor documentation fixes. (#3599)
* A few minor documentation fixes.

* Removed more invalid inheritdoc instances.
2024-02-22 19:16:36 -05:00
Nicholas Rodine
7659a4ffc2 Removed unused usings. (#3593)
* Removed unused usings.

* Added back using, now that it's used.

* Removed extra whitespace.
2024-02-22 19:16:36 -05:00
Nicholas Rodine
92648d071a Skipped over the last "Count" key explicitly, instead of relying on an exception. (#3595) 2024-02-22 19:16:36 -05:00
Nicholas Rodine
fe264f2fec Fix SpirV parse failure (#3597)
* Added .ToString overrides, to help diagnose and debug SpirV generated code.

* Added Spirv to team shared dictionary, so the word will not show up as a warning.

* Fixed bug where we were creating invalid constants (bool 0i and float 0i)

* Update Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Update Spv.Generator/Instruction.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Adjusted spacing to match style of the rest of the code.

* Added handler for FP64(double) as well, for undefined aggregate types.

* Made the operand labels a static dictionary, to avoid re-allocation on each call.
Replaced Contains/Get with a TryGetValue, to reduce the number of dictionary lookups.

* Added newline between AllOperands and ToString().

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:16:36 -05:00
Nicholas Rodine
3f57aeb74c Removed extra semicolons. (#3594) 2024-02-22 19:16:36 -05:00
Emmanuel Hansen
19834908bb Avalonia - Couple fixes and improvements to vulkan (#3483)
* drop split devices, rebase

* add fallback to opengl if vulkan is not available

* addressed review

* ensure present image references are incremented and decremented when necessary

* allow changing vsync for vulkan

* fix screenshot on avalonia vulkan

* save favorite when toggled

* improve sync between popups

* use separate devices for each new window

* fix crash when closing window

* addressed review

* don't create the main window with immediate mode

* change skia vk delegate to method

* update vulkan throwonerror

* addressed review
2024-02-22 19:16:36 -05:00
gdkchan
c6b0924337 Vulkan: Add ETC2 texture formats (#3576) 2024-02-22 19:16:35 -05:00
Ac_K
b4719edae0 am: Stub SetWirelessPriorityMode, SetWirelessPriorityMode and GetHdcpAuthenticationState (#3535)
This PR some calls in `am` service:
- ISelfController: SetWirelessPriorityMode, SaveCurrentScreenshot (Partially checked by RE).
- ICommonStateGetter: GetHdcpAuthenticationState

Close #1831 and close #3527
2024-02-22 19:16:35 -05:00
mageven
917dd5a236 ControllerApplet: Override player counts when SingleMode is set (#3571) 2024-02-22 19:16:35 -05:00
merry
bcd372ec17 PreAllocator: Check if instruction supports a Vex prefix in IsVexSameOperandDestSrc1 (#3587) 2024-02-22 19:16:35 -05:00
gdkchan
2430125bc5 Fix texture bindings using wrong sampler pool in some cases (#3583) 2024-02-22 19:16:35 -05:00
gdkchan
6b901b7007 OpenGL: Limit vertex buffer range for non-indexed draws (#3542)
* Limit vertex buffer range for non-indexed draws

* Fix typo
2024-02-22 19:16:35 -05:00
gdkchan
19a40e8d5e Fix blend with RGBX color formats (#3553) 2024-02-22 19:16:35 -05:00
gdkchan
9f31762b9e Rename ToSpan to AsSpan (#3556) 2024-02-22 19:16:35 -05:00
txorion
21acb0b2e5 add Japanese translation to Avalonia UI (#3489)
* add Japanese translation to Avalonia UI

* translate language names

* fix raised in the review
2024-02-22 19:16:35 -05:00
gdkchan
d5c064e67a OpenGL: Fix clears of unbound color targets (#3564) 2024-02-22 19:16:35 -05:00
gdkchan
c0b0b58b64 Implement Arm32 Sha256 and MRS Rd, CPSR instructions (#3544)
* Implement Arm32 Sha256 and MRS Rd, CPSR instructions

* Add tests using Arm64 outputs
2024-02-22 19:16:35 -05:00
gdkchan
f7102525df Implement HLE macros for render target clears (#3528)
* Implement HLE macros for render target clears

* Add constants for the offsets
2024-02-22 19:16:35 -05:00
riperiperi
c2e7b29cce Fix Multithreaded Compilation of Shader Cache on OpenGL (#3540)
This was broken by the Vulkan changes - OpenGL was building host caches at boot on one thread, which is very notably slower than when it is multithreaded.

This was caused by trying to get the program binary immediately after compilation started, which blocks. Now it does it after compilation has completed.
2024-02-22 19:16:35 -05:00
Ac_K
4205286e36 Sfdnsres; Stub ResolverSetOptionRequest (#3493)
This PR stub ResolverSetOptionRequest (checked by RE), but the options parsing is still missing since we don't support it in our current code.

(Close #3479)
2024-02-22 19:16:34 -05:00
gdkchan
dd95c08a4c Fix resolution scale values not being updated (#3514) 2024-02-22 19:16:34 -05:00
gdkchan
2388799a1b Fix geometry shader passthrough fallback being used when feature is supported (#3525)
* Fix geometry shader passthrough fallback being used when feature is supported

* Shader cache version bump
2024-02-22 19:16:34 -05:00
riperiperi
63fc49688d SPIR-V: Initialize undefined variables with 0 (#3526)
* SPIR-V: Initialize undefined variables with a value

Changes undefined values on spir-v shaders (caused by phi nodes) to be initialized instead of truly undefined.

Fixes an issue with NVIDIA gpus seemingly not liking when a variable is _potentially_ undefined. Not sure about the details at the moment.

Fixes:
- Tilt shift blur effect in Link's Awakening (bottom of the screen)
- Potentially block flickering on newer NVIDIA gpus in Splatoon 2? Needs testing.

Testing is welcome.

* Update Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-02-22 19:16:34 -05:00
Mary-nyan
174c87a561 vk: Workaround XCB not availaible on FlatHub build (#3515)
Update SPB to 0.0.4-build24 which hopefully fix the issue by checking
libX11-xcb presence.
2024-02-22 19:16:34 -05:00