Alex Barney
53e6664526
Update libhac. Load tickets from XCI files ( #476 )
2018-10-30 23:34:27 -03:00
Alex Barney
9cb57fb4bb
Adjust naming conventions for Ryujinx and ChocolArm64 projects ( #484 )
...
* Change naming convention for Ryujinx project
* Change naming convention for ChocolArm64 project
* Fix NaN
* Remove unneeded this. from Ryujinx project
* Adjust naming from new PRs
* Name changes based on feedback
* How did this get removed?
* Rebasing fix
* Change FP enum case
* Remove prefix from ChocolArm64 classes - Part 1
* Remove prefix from ChocolArm64 classes - Part 2
* Fix alignment from last commit's renaming
* Rename namespaces
* Rename stragglers
* Fix alignment
* Rename OpCode class
* Missed a few
* Adjust alignment
2018-10-30 22:43:02 -03:00
gdkchan
5a87e58183
Fix regression caused by wrong time delta calculation on cache deletion methods
2018-10-30 11:42:27 -03:00
gdkchan
5b13ee655c
Fix the rotate right method on ABitUtils ( #486 )
2018-10-28 22:18:58 -03:00
jduncanator
c1b7340023
Timing: Optimize Timestamp Aquisition ( #479 )
...
* Timing: Optimize Timestamp Aquisition
Currently, we make use of Environment.TickCount in a number of places. This has some downsides, mainly being that the TickCount is a signed 32-bit integer, and has an effective limit of ~25 days before overflowing and wrapping around. Due to the signed-ness of the value, this also caused issues with negative numbers. This resolves these issues by using a 64-bit tick count obtained from Performance Counters (via the Stopwatch class). This has a beneficial side effect of being significantly more accurate than the TickCount.
* Timing: Rename ElapsedTicks to ElapsedMilliseconds and expose TicksPerX
* Timing: Some style changes
* Timing: Align static variable initialization
2018-10-28 19:31:13 -03:00
LDj3SNuD
b956bbc32c
Add SHA1C, SHA1H, SHA1M, SHA1P, SHA1SU0, SHA1SU1 and Isb instructions; add 6 Tests (closed box). ( #483 )
...
* Update AOpCodeTable.cs
* Update AInstEmitSystem.cs
* Update AInstEmitSimdHash.cs
* Update ASoftFallback.cs
* Update CpuTestSimdReg.cs
* Update CpuTestSimd.cs
2018-10-28 19:27:50 -03:00
gdkchan
111d14f74a
Crop instead of resizing on 2d engine texture copies ( #482 )
...
* Crop instead of resizing on 2d engine texture copies
* Remove unused local
2018-10-27 18:46:17 +00:00
Thomas Guillemard
19152def95
hid: Implement KEY_RSTICK_* & KEY_LSTICK_* ( #466 )
...
* hid: Implement KEY_RSTICK_* & KEY_LSTICK_*
* Fix KEY_RSTICK_UP
2018-10-27 18:36:49 +00:00
LDj3SNuD
00d4f44bbb
Add Sse Opt. for S/Uaddl_V, S/Uhadd_V, S/Uhsub_V, S/Umlal_V, S/Umlsl_V, S/Urhadd_V, S/Usubl_V Inst.; and for S/Urshr_V, S/Ursra_V Inst.. ( #480 )
...
* Update AILEmitterCtx.cs
* Update AInstEmitSimdArithmetic.cs
* Update AInstEmitSimdShift.cs
2018-10-25 19:10:41 -03:00
gdkchan
f0a49a1c94
Fix Color Mask values ( #473 )
...
* Fix color mask common, set default value on first color mask register
* Missing check
* Better exception messages
* Address PR feedback
* Add fixme as per review feedback
2018-10-25 18:30:09 -03:00
gdkchan
2fd23577ce
Move prio/core locals inside the lock on yield ( #478 )
2018-10-24 09:45:37 -03:00
gdkchan
9ace6b9285
Fix for render target and a shader compilation issue ( #471 )
...
* Fix render target using possibly deleted or wrong handles
* Fix basic blocks with only a KIL instruction on the shader translator
* Formatting fix
2018-10-23 17:59:52 -03:00
gdkchan
044b84b078
Add depth range support on the GPU ( #472 )
...
* Add depth range support on the GPU
* Address PR feedback
2018-10-23 16:04:08 -03:00
LDj3SNuD
e674b37710
Fix Fcvtl_V and Fcvtn_V; fix half to float conv. and add float to half conv. (full FP emu.). Add 4 FP Tests. ( #468 )
...
* Update CpuTest.cs
* Update CpuTestSimd.cs
* Superseded.
* Update AInstEmitSimdCvt.cs
* Update ASoftFloat.cs
* Nit.
* Update PackageReferences.
* Update AInstEmitSimdArithmetic.cs
* Update AVectorHelper.cs
* Update ASoftFloat.cs
* Update ASoftFallback.cs
* Update AThreadState.cs
* Create FPType.cs
* Create FPExc.cs
* Create FPCR.cs
* Create FPSR.cs
* Update ARoundMode.cs
* Update APState.cs
* Avoid an unwanted implicit cast of the operator >= to long, continuing to check for negative values. Remove a leftover.
* Nits.
2018-10-23 11:12:45 -03:00
Ac_K
7920dc1d2f
Implement basic psm service ( #467 )
...
* Implement basic psm service
- Add `IPsmServer`
- Stub `GetBatteryChargePercentage` & `GetChargerType`
* Fix wrong sorting
* Add IPsmSession
- Add `IPsmSession` by Thog
- Implement `OpenSession`
2018-10-21 03:01:22 -03:00
Thomas Guillemard
b5f7d8106b
Complete rewrite of bsd IClient ( #460 )
...
This should provide accurate behaviours.
This implementation has been tested with ftpd and libtransistor bsd tests.
This implementation lacks OOB support.
2018-10-20 22:08:58 +00:00
gdkchan
2cb8541462
Print stack trace on invalid memory accesses ( #461 )
...
* Print stack trace on invalid memory accesses
* Rebased, change code region base address for 39-bits address space, print stack trace on break and undefined instructions too
2018-10-20 22:07:52 +00:00
gdkchan
0e1e094b7a
Improve texture tables ( #457 )
...
* Improve texture tables
* More renaming and other tweaks
* Minor tweaks
2018-10-17 18:02:23 -03:00
gdkchan
02a8e7fc93
Remove unnecessary usings ( #463 )
...
* Remove unnecessary usings
* Fix CastExpression while I'm at it
2018-10-17 14:55:10 -03:00
ReinUsesLisp
b3a4662be1
Move logging to Ryujinx.Common and make it a static class ( #413 )
2018-10-17 14:15:50 -03:00
Thomas Guillemard
9b19ea3c87
Remove IFileSystem::OpenDirectory extraneous check ( #459 )
...
A directory can be open more than one time. This fix issues with
homebrews opening the same directory multiple time.
2018-10-16 23:55:10 +00:00
HorrorTroll
76330b10b4
Add G8R8Unorm, G8R8Snorm, B8G8R8A8, D24_S8 Uint, R8Uint, R32Uint ( #426 )
...
* Implement B5G6R5Unorm & BGR5A1Unorm
* Fix R8G8 Unorm to G8R8 Unorm
* Added back R8G8 Unorm
* Fix G8R8Unorm, add R8G8B8A8
* Add D24_S8 Uint
* Add R8Uint & R32Uint
* Another fixed
* Reverting back
* R8G8B8A8 change to B8G8R8A8
* Add G8R8 Snorm
2018-10-14 18:23:23 -03:00
HorrorTroll
b0cfe2fb1f
Add RG16Unorm & R16Uint ( #456 )
...
* Implement B5G6R5Unorm & BGR5A1Unorm
* Add RG16Unorm, R16Uint
2018-10-14 18:20:10 -03:00
gdkchan
72317d7777
Add support for saturation on some shader instructions, fix ReadTexture alignment and add ColorMask support ( #451 )
...
* Add support for saturation on some shader instructions, fix ReadTexture alignment
* Add ColorMask support, other tweaks
2018-10-13 23:54:14 -03:00
LDj3SNuD
894459fcd7
Add Fmls_Se, Fmulx_Se/Ve, Smov_S Inst.; Opt. Clz/Clz_V, Cnt_V, Shl_V, S/Ushr_V, S/Usra_V Inst.; Add 11 Tests. Some fixes. ( #449 )
...
* Update AOpCodeTable.cs
* Update AInstEmitSimdMove.cs
* Update AInstEmitSimdArithmetic.cs
* Update AInstEmitSimdShift.cs
* Update ASoftFallback.cs
* Update ASoftFloat.cs
* Update AOpCodeSimdRegElemF.cs
* Update CpuTestSimdIns.cs
* Update CpuTestSimdRegElem.cs
* Create CpuTestSimdRegElemF.cs
* Update CpuTestSimd.cs
* Update CpuTestSimdReg.cs
* Superseded Fmul_Se Test. Nit.
* Address PR feedback.
* Address PR feedback.
* Update AInstEmitSimdArithmetic.cs
* Update ASoftFallback.cs
* Update AInstEmitAlu.cs
* Update AInstEmitSimdShift.cs
2018-10-13 23:35:16 -03:00
Thomas Guillemard
ac1a379265
Fix some issues with UserId ( #455 )
2018-10-14 02:07:56 +00:00
Ac_K
3561062bc6
Update IAccountService and IManagerForApplication ( #454 )
...
* Update IAccountService and IManagerForApplication
`IAccountService`:
- Add symbols.
- Fix some mistake.
- Add `IsUserRegistrationRequestPermitted` and `TrySelectUserWithoutInteraction`.
`IManagerForApplication`:
- Add symbols.
- Add Uuid args.
- Little improvement of `GetAccountId`
2018-10-14 01:16:02 +02:00
Ac_K
824d4b74d0
Update UInt128.cs ( #453 )
...
Fix invalid Write implementation.
2018-10-13 23:29:49 +02:00
gdkchan
aa1cd849cf
Quads, QuadStrip, const attributes and half-float attributes support ( #447 )
...
* Quads, QuadStrip and const attributes support
* Add support for half float attributes and fix texture pitch alignment
* Throw when an unsupported float type is used as const attribute aswell
2018-10-13 01:37:01 +00:00
gdkchan
dd3cb33c9f
Fix race condition on OpenALAudioOut ( #448 )
2018-10-12 18:47:53 -03:00
Thomas Guillemard
b2063be597
Implement IResolver ( #442 )
...
* Implement IResolver
- GetAddrInfo & GetNameInfo still need to be implemented.
* Address comments
* Use MakeError
2018-10-10 01:15:07 +02:00
Thomas Guillemard
d5c0de8362
Implement IRoInterface ( #445 )
...
* Implement IRoInterface
This is required by Super Mario Party.
This commit also adds MapProcessCodeMemory and UnmapProcessCodeMemory functions in KMemoryManager. Those two calls might not reflect what the SVC of the same names do.
* Fix some code style issues
* Use MakeError to clarify error code
* Add NRR and NRO constants
* Fix some codestyle issues
* Fix InvalidMemoryState error code
2018-10-10 01:01:49 +02:00
Thomas Guillemard
65c67bb4a5
Break: don't crash when bit 31 is set ( #444 )
2018-10-08 20:53:08 +02:00
gdkchan
74ca82c534
Tweak cpu cache deletion policy values ( #433 )
...
* Tweak cpu cache deletion policy values
* Address PR feedback
2018-10-07 23:40:37 -03:00
emmauss
625fc8c0e0
Stubs Again ( #439 )
...
* stub/implement audren commands
* stub ISelfController get/set IdleTimeDetectonExtension
* stub irs
* add irs logclass, stub mmu:u irequest 1
* style fixes, addressed comments
2018-10-07 17:12:11 +02:00
emmauss
caa181edf2
Save Common implementation ( #434 )
...
* save common implementation
* remove zero userid check
* Renamed UserId to UInt128
* fix index in hex conversion
2018-10-07 15:13:46 +02:00
Ac_K
5b8ccb717f
Implement ISslContext ( #440 )
...
This PR implement an empty `ISslContext` and update `CreateContext` and `SetInterfaceVersion` inside `ISslService`
2018-10-07 00:16:42 +02:00
Alex Barney
5821ff675d
Misc content loading improvements ( #432 )
...
* Misc content loading improvements
2018-10-06 18:11:47 +03:00
LDj3SNuD
bba9bf97d0
Add 9+7 fast/slow FP inst. impls.; add 14 FP Tests. ( #437 )
...
* Update CpuTest.cs
* Delete CpuTestSimdCmp.cs
Obsolete.
* Update CpuTestSimdArithmetic.cs
Superseded.
* Update CpuTestSimd.cs
* Update CpuTestSimdReg.cs
* Update AInstEmitSimdArithmetic.cs
* Update AInstEmitSimdHelper.cs
* Update ASoftFloat.cs
* Nit.
* Update AOpCodeTable.cs
* Update AOptimizations.cs
* Update AInstEmitSimdArithmetic.cs
* Update ASoftFloat.cs
* Update CpuTest.cs
* Update CpuTestSimd.cs
* Update CpuTestSimdReg.cs
* Update AOpCodeTable.cs
* Update AInstEmitSimdArithmetic.cs
* Update ASoftFloat.cs
* Update CpuTestSimdReg.cs
* Update AOpCodeTable.cs
* Update AInstEmitSimdArithmetic.cs
* Update ASoftFloat.cs
* Update CpuTestSimd.cs
* Update CpuTestSimdReg.cs
2018-10-05 22:45:59 -03:00
emmauss
0254a84f90
Merge pull request #436 from emmauss/hidhandles
...
Fix Out of Handles error in HidServer
2018-09-28 13:50:15 +03:00
emmaus
0ada047eaf
fix out of handles error
2018-09-28 10:47:53 +00:00
gdkchan
0b52ee6627
Optimize BIC, BSL, BIT, BIF, XTN, ZIP, DUP (Gp), FMADD (Scalar) and FCVT (Scalar) using SSE intrinsics ( #405 )
...
* Optimize BIC, BSL, BIT, BIF, XTN, ZIP, DUP (Gp), FMADD (Scalar) and FCVT (Scalar) using SSE intrinsics, some CQ improvements
* Remove useless space
* Address PR feedback
* Revert EmitVectorZero32_128 changes
2018-09-26 23:30:21 -03:00
Ac_K
40282da93a
Implement friend:a IFriendService: 10101 ( #429 )
...
* Implement friend:a IFriendService: 10101
* Update Profile Picture
* Update IFriendServiceTypes.cs
* Update IFriendServiceTypes.cs
* Update IFriendService.cs
* Update IFriendServiceTypes.cs
* Update IFriendServiceTypes.cs
* Update IFriendService.cs
2018-09-25 19:59:29 -03:00
ReinUsesLisp
2562ca6c3f
Fix multiple rendertargets ( #427 )
...
* Simplify render target bindings
* Implement multiple viewports
* Pack glViewportIndexed calls into a single glViewportArray
* Use ARB_viewport_array when available
* Cache framebuffer attachments
* Use get accessors in OGLExtension
* Address feedback
2018-09-26 00:55:30 +02:00
gdkchan
7de7b559ad
Improve kernel events implementation ( #430 )
...
* Improve kernel events implementation
* Some cleanup
* Address PR feedback
2018-09-23 20:11:46 +02:00
gdkchan
54ed9096bd
Add FMAXP and FMINP (Vector) instructions on the CPU ( #412 )
...
* Add FMAXP and FMINP (Vector) instructions on the CPU
* Address PR feedback
2018-09-22 17:26:18 -03:00
Ac_K
a76660eac5
Fix IHidServer code style
2018-09-21 06:30:58 +02:00
Ac_K
e77c1560e6
Full 5.X stubbed IHidServer ( #428 )
...
* Full 5.X stubbed IHidServer
Since we can't support all those Hid calls in the right way, we can stub them with more information as possible in the logs.
I have added all symbols in it to be more revelant as possible.
It's remove some Hid spam in few games too, because we assign some var as the game want.
* Fix issues
* Fix code according to review
2018-09-21 02:08:35 +02:00
ReinUsesLisp
47a62e826f
Implement DepthWriteMask and add R16G16 ( #425 )
2018-09-19 22:02:11 -03:00
ReinUsesLisp
bed13f2022
General improvements for GpuResourceManager ( #421 )
...
* General improvements to GpuResourceManager
* Address feedback
* Address feedback
2018-09-19 18:26:49 -03:00