2847 Commits

Author SHA1 Message Date
gdkchan
303f1adf9e Fix vertex buffer size on the gpu when the draw vertex count is less than the buffer size, added a few more registers (currently not implemented) 2018-06-27 01:32:28 -03:00
ReinUsesLisp
cd159367d1 Fix GL.CreateBuffers -> GL.GenBuffers (#189) 2018-06-26 02:30:46 -03:00
ReinUsesLisp
c8bedf558c Implementation of UBOs instead of uniform constant arrays (#186)
* Sort uniform binding to avoid possible failures in drivers fewer bindings

* Throw exception for Cbuf overflow

* Search for free bindings instead of using locked ones

* EnsureAllocated when binding buffers

* Fix uniform bindings

* Remove spaces

* Use 64 KiB UBOs when available

* Remove double colon

* Use IdentationStr and avoid division in Cbuf offset

* Add spaces
2018-06-26 02:10:54 -03:00
gdkchan
53778e429f Relax GetThreadContext3 by allowing it to get the context of a running thread 2018-06-26 01:26:21 -03:00
gdkchan
813566edc0 Set PC value on SvcCall aswell 2018-06-26 01:14:18 -03:00
gdkchan
3028d3719a Implement SvcGetThreadContext3 2018-06-26 01:10:15 -03:00
LDj3SNuD
f246334568 Add Sqxtun_S, Sqxtun_V with 3 tests. (#188)
* Update AInstEmitSimdArithmetic.cs

* Update Instructions.cs

* Update CpuTestSimd.cs
2018-06-25 23:36:20 -03:00
LDj3SNuD
712974f827 Add Sse Opt. for Cmeq_V_2D, Cmgt_V_2D (Reg). Add Sse Opt. for Crc32cb, Crc32ch, Crc32cw, Crc32cx. Add 10 simple tests for Fcmgt, Fcmge, Fcmeq, Fcmle, Fcmlt (S, V) (Reg, Zero). Add 2 Cnt_V tests. (#183)
* Add files via upload

* Add files via upload

* Add files via upload

* CPE

* Add EmitSse42Crc32()

* Update CpuTestSimdCmp.cs

* Update Pseudocode.cs

* Update Instructions.cs

* Update CpuTestSimd.cs

* Update Instructions.cs
2018-06-25 22:32:29 -03:00
gdkchan
85a2e2a579 Add REV16/32 (vector) instructions and fix REV64 2018-06-25 18:40:55 -03:00
gdkchan
bb04b23ca7 Fix GetLastOpenedUser stub returning an invalid account id value 2018-06-25 17:12:59 -03:00
Rygnus
9dfc5c90f2 Add opcodes SQXTUN_S and SQXTUN_V (#184)
* Add SQXTUN_S and SQXTUN_V

Part 1/2 of commit

* Add SQXTUN_S and SQXTUN_V (2/2)

Part 2/2 of commit
2018-06-25 14:23:46 -03:00
gdkchan
2cd57f1ba2 Aways write voice state as finished playing while proper audren support is not in place 2018-06-25 02:04:19 -03:00
gdkchan
a7de328a4f Small OpenGL Renderer refactoring (#177)
* Call OpenGL functions directly, remove the pfifo thread, some refactoring

* Fix PerformanceStatistics calculating the wrong host fps, remove wait event on PFIFO as this wasn't exactly was causing the freezes (may replace with an exception later)

* Organized the Gpu folder a bit more, renamed a few things, address PR feedback

* Make PerformanceStatistics thread safe

* Remove unused constant

* Use unlimited update rate for better pref
2018-06-23 21:39:25 -03:00
gdkchan
dbbf5d3632 Workaround for recent audren regression 2018-06-23 03:17:07 -03:00
gdkchan
b8786d0acc Fix 3 graphics related issues (#180)
* Fix 3 graphics related bugs

* OGLShader shouldn't be public (yet)
2018-06-23 02:00:44 -03:00
Starlet
1b48089a12 Better audren implementation (#179) 2018-06-23 02:00:14 -03:00
gdkchan
e19f298185 Fix some thread sync issues (#172)
* Fix some thread sync issues

* Remove some debug stuff

* Ensure that writes to the mutex address clears the exclusive monitor
2018-06-21 23:05:42 -03:00
ReinUsesLisp
d3e3016b3f Port from OpenTK.NETCore to OpenTK.NetStandard (#176)
* Minor code changes

* Forgot to remove a method
2018-06-21 18:10:19 -03:00
riperiperi
2afa90eb2f Rework signed multiplication. Fixed an edge case and passes all tests. (#174) 2018-06-20 10:45:20 -03:00
LDj3SNuD
5c27929d53 Add Cmeq_S, Cmge_S, Cmgt_S, Cmhi_S, Cmhs_S, Cmle_S, Cmlt_S (Reg, Zero) & Cmtst_S compare instructions. Add 22 compare tests (Scalar, Vector). Add Eor_V, Not_V tests. (#171)
* Add files via upload

* Add files via upload

* Delete CpuTestScalar.cs

* Update CpuTestSimdArithmetic.cs
2018-06-18 14:55:26 -03:00
Jules Blok
2d2cb7e17b NvGpuEngine3d: Fix uploading vertex arrays without index buffers. (#173) 2018-06-18 10:59:03 -03:00
gdkchan
43cfbf6c63 Do not read or write macros to main memory, use a separate memory instead (as this apparently what the real thing does) 2018-06-18 01:32:11 -03:00
gdkchan
8ac10d1d97 Add the FADDP (scalar) instruction 2018-06-18 00:41:28 -03:00
Ac_K
c1094d68ef Implement NPDM files parser (#169)
* Implement NPDM files parser

(Currently not used in Ryujinx)

* Add credits

* Add Swap32

* Update Npdm.cs

* Update ACI0.cs

* Update ACID.cs

* Update Npdm.cs

* Update EndianSwap.cs

* Update ACI0.cs

* Update ACID.cs

* Update KernelAccessControl.cs

* Update NpdmInfo.cs

* Update ServiceAccessControl.cs

* Update NpdmInfo.cs
2018-06-17 23:28:11 -03:00
Ac_K
c27161fa42 Merge pull request #152 from greggameplayer/patch-5
Implement ListAudioOutsAuto & OpenAudioOutAuto
2018-06-17 04:16:16 +00:00
greggameplayer
e2417351ec delete mixed tabs & spaces & use void for methods 2018-06-15 17:54:18 +02:00
greggameplayer
8a0120ae88 add a new Method for OpenAudioOut & OpenAudioOutAuto 2018-06-15 17:41:07 +02:00
greggameplayer
41066802bc Implement ListAudioOutsAuto & OpenAudioOutAuto 2018-06-15 17:24:02 +02:00
Ac_K
31912b692d Merge pull request #160 from greggameplayer/patch-7
Implement GetAvailableLanguageCodes2 with a method
2018-06-13 15:40:37 +00:00
greggameplayer
be462841f1 change places of the args of GetAvailableLanguagesCodesMethod 2018-06-13 17:38:19 +02:00
riperiperi
e26af8f2b3 Faster soft implementation of smulh and umulh (#134)
* Faster soft implementation of smulh and umulh

* smulh: Fixed mul with 0 acting like it had a negative result.

* Use compliment for negative smulh result.
2018-06-13 10:55:45 -03:00
gdkchan
72ae07e6f6 Partial GPU DMA support (#158) 2018-06-13 10:55:01 -03:00
greggameplayer
a616ebd5cd correct whitespaces 2018-06-13 15:12:03 +02:00
greggameplayer
66a1dbe18e Implement GetAvailableLanguageCodes2 with a method 2018-06-13 15:08:11 +02:00
Ac_K
2fab4145e3 Merge pull request #157 from Cyuubi/pctl-initialize-and-without-initialize
[PCTL] Add CreateServiceWithoutInitialize and Initialize
2018-06-13 00:53:54 +00:00
Starlet
da92121d00 Compliant with review. 2018-06-12 20:51:59 -04:00
Ac_K
026e5a64cf Merge pull request #148 from Lordmau5/ICommonStateGetter
Implement GetDefaultDisplayResolution/+ChangeEvent on ICommonStateGetter
2018-06-12 23:30:45 +00:00
Lordmau5
0ea30a6494 Remove comment 2018-06-13 01:29:39 +02:00
Lordmau5
440397710f Merge branch 'master' into ICommonStateGetter 2018-06-13 01:28:49 +02:00
Starlet
f163fb0c0f [PCTL] Add CreateServiceWithoutInitialize and Initialize 2018-06-12 14:28:45 -04:00
Lordmau5
76c745f79d Implement R16 texture format (#147) 2018-06-12 09:29:44 -03:00
Lordmau5
ffba9b94cf Implement Fabs_V (#146) 2018-06-12 09:29:16 -03:00
gdkchan
f5f884f614 Minor shader fixes 2018-06-12 09:26:49 -03:00
Ac_K
9192d0b892 Merge pull request #153 from DatBoiJay3/hid-smo
Fix input in SMO
2018-06-12 02:54:41 +00:00
DatBoiJay3
d1da6c2606 Neatness counts 2018-06-11 19:53:44 -07:00
DatBoiJay3
ae4406e70a Fix input in SMO
Unsure if this will break other games though.
Please test. :)
2018-06-11 19:29:12 -07:00
Lordmau5
106dcb2899 Merge branch 'master' into ICommonStateGetter 2018-06-11 06:03:37 +02:00
gdkchan
74ef146653 Rename Ryujinx.Core to Ryujinx.HLE and add a separate project for a future LLE implementation 2018-06-10 21:46:42 -03:00
Lordmau5
7134a0d05e Fix bracket alignment 2018-06-11 02:10:09 +02:00
Lordmau5
da8fcc7a1c Implement GetDefaultDisplayResolution/+ChangeEvent on ICommonStateGetter 2018-06-11 01:59:36 +02:00