Commit graph

36 commits

Author SHA1 Message Date
Wunkolo
2c94d0d683 Add Helpers:{getBits,getBit}
`constexpr` functions for extractint bitfields that lends itself a bit
better to emitting instructions like `bextr` on x86 or `ubfx` on arm64.
And may subjectively make things a bit more readable.
"Extract `5` bits" rather than `& 0x1F`.
2023-06-10 00:48:06 -07:00
wheremyfoodat
392fa6e595 [PICA] Fix slti/sgei operand descriptor 2023-04-26 21:55:18 +03:00
wheremyfoodat
ab5f6cf31c [PICA] Add slt, sgei 2023-04-26 21:46:10 +03:00
wheremyfoodat
c6fed2641c [PICA] Implement SLTI 2023-03-12 05:05:19 +02:00
wheremyfoodat
26cce7c58f [PICA] Implement madi 2023-03-12 04:55:06 +02:00
wheremyfoodat
672e782990 [PICA] Implement FLR 2023-03-12 04:47:34 +02:00
wheremyfoodat
63075f1830 [PICA] Indexed add 2023-03-12 04:39:27 +02:00
wheremyfoodat
d24a61d5a7 [PICA] Warning when invalid source is accessed & return 0 2023-03-11 23:08:46 +02:00
wheremyfoodat
9f61fc0a4e [PICA] Implement JMPC 2023-03-11 00:06:42 +02:00
wheremyfoodat
3be6553207 [PICA] Add JMPU 2023-03-10 04:50:47 +02:00
wheremyfoodat
4b85ac8cc5 [PICA] Implement CALLC 2023-03-10 00:00:54 +02:00
wheremyfoodat
e80679fe77 Geometry pipeline v2
Co-Authored-By: Sky <skylersaleh@gmail.com>
2023-02-26 20:41:33 +02:00
wheremyfoodat
1019f65824 Fix Fedora build 2023-02-18 00:57:42 +02:00
wheremyfoodat
bbb62a83d0 [PICA] Implement RCP 2023-01-07 01:34:34 +02:00
wheremyfoodat
8f796352a6 Fix typos 2022-12-11 03:12:20 +02:00
wheremyfoodat
a58e8a3c97 [PICA] Add idx to DP3/DP4 2022-12-08 00:28:38 +02:00
wheremyfoodat
448f84ceb4 [PICA] Implement MAX 2022-12-07 02:31:41 +02:00
wheremyfoodat
f9079f9dce [Shader interpreter] Implement CALL 2022-10-12 00:28:50 +03:00
wheremyfoodat
8b85255f4c [PICA] Alpha test and some new registers 2022-10-01 02:40:08 +03:00
wheremyfoodat
4d1bb6f866 [PICA] Fix more shader bugs 2022-09-27 02:27:41 +03:00
wheremyfoodat
f90dd2d60b [PICA] Start fixing shader bugs & adding depth (Breaks Mario for now :( ) 2022-09-27 00:31:59 +03:00
wheremyfoodat
979519f785 [PICA interpreter] Implement RSQ, MAD, CALLU and boot SM64 2022-09-26 01:05:03 +03:00
wheremyfoodat
f4fabdae40 [PICA interpreter] Implement min 2022-09-26 00:07:59 +03:00
wheremyfoodat
71814debac [PICA interpreter] Implement ifc, cmp 2022-09-25 23:59:09 +03:00
wheremyfoodat
cd2da6d50f [PICA] Implement dp3 2022-09-25 18:41:32 +03:00
wheremyfoodat
3706c7ee0c [PICA] Implement loops 2022-09-25 18:34:36 +03:00
wheremyfoodat
a5c6fb858f [PICA] Implement int uniforms 2022-09-25 17:45:59 +03:00
wheremyfoodat
4cda023c22 Fix warnings 2022-09-25 17:19:21 +03:00
wheremyfoodat
9eb661c768 [PICA] Implement address registers 2022-09-25 16:12:35 +03:00
wheremyfoodat
63ff2ac0de [PICA interpreter] Implement mova 2022-09-25 15:35:28 +03:00
wheremyfoodat
61212c9341 [PICA] Implement mul 2022-09-24 03:11:36 +03:00
wheremyfoodat
f22d389591 [PICA] Implement add 2022-09-24 03:05:59 +03:00
wheremyfoodat
75070ca6ef [PICA interpreter] Implement dp4, end 2022-09-23 15:49:56 +03:00
wheremyfoodat
ce07b7e5e0 [PICA] We can now upload floating point uniforms for real 2022-09-23 14:31:26 +03:00
wheremyfoodat
9d48541e98 [PICA interpreter] Implement mov 2022-09-23 04:08:23 +03:00
wheremyfoodat
057aa57422 [PICA] Start implementing shader interpreter 2022-09-23 02:43:51 +03:00