Commit graph

945 commits

Author SHA1 Message Date
Nicolas "Pixel" Noble
13a2442acb Trying to automate Doxygen website generation. 2025-01-11 23:36:57 -08:00
Nicolas "Pixel" Noble
ecafa285f4 Adding ceil and floor to fixed point class. 2025-01-11 19:47:17 -08:00
Nicolas "Pixel" Noble
e327eacd1a Adding MaskControl, and a bit more documentation in other control primitives. 2025-01-10 19:09:06 -08:00
Nicolas "Pixel" Noble
82280a1778 Using neutral color instead of disabling texture modulation. 2025-01-09 21:27:19 -08:00
Nicolas "Pixel" Noble
a7ae9bc7fe Making padding bytes public for user data. 2025-01-09 21:24:23 -08:00
John Baumann
321546291f The rabbit is right... ugh 2025-01-09 22:51:48 -06:00
John Baumann
2e21c2f845 Sneaking in more changes... Try to improve code readability 2025-01-09 22:46:04 -06:00
Nicolas "Pixel" Noble
d0beb19596 Adding more getters. 2025-01-08 22:00:13 -08:00
Nicolas "Pixel" Noble
99c321fc60 Disabling explicit copy constructor concept because of SimpleFragment's variadic template constructor. 2025-01-08 21:59:56 -08:00
Nicolas "Pixel" Noble
c541da57ea Adding used method to BumpAllocator. 2025-01-08 21:12:02 -08:00
Nicolas "Pixel" Noble
5bbb54a854 Allowing asserts to be more lightweight, and adding asserts to bump allocator. 2025-01-08 21:02:43 -08:00
John Baumann
131796eefa Kill other adc getters, too redundant. 2025-01-08 22:36:29 -06:00
John Baumann
f3ee66ea73 Change Pad to enum class, add casts, more doc 2025-01-08 22:22:44 -06:00
Nicolas "Pixel" Noble
d65b158c37 Better primitives constructors
- clamping colors to 24-bits
- ability to copy the properties of another primitive while setting a color
2025-01-07 20:53:54 -08:00
John Baumann
af630c462e Fix documenation mistake, woops. 2025-01-07 22:53:43 -06:00
Nicolas "Pixel" Noble
7f480549b2 Better constructors for SimpleFragment and BumpAllocator. 2025-01-07 20:47:05 -08:00
johnbaumann
7b4f8155dd
Merge branch 'main' into psyqo_multitap_additions 2025-01-07 22:44:56 -06:00
John Baumann
e73f7fd586 Address some of the wascally wabbit's nitpicks 2025-01-07 22:42:38 -06:00
Nicolas "Pixel" Noble
caf6d86f62 Adding remaining method to the bump allocator. 2025-01-07 20:35:54 -08:00
John Baumann
929e76fb53 Bump copyright, use vprintf, play with some logic 2025-01-07 21:30:51 -06:00
EngineersBox
ba48f01bf8 Bumped copyright date to 2025 2025-01-07 12:56:25 +11:00
EngineersBox
64b63a136f Bumped copyright date to 2025 2025-01-06 21:14:08 +11:00
Nicolas Noble
42e94fe5e1
Merge pull request #1829 from nicolasnoble/kernel-check
Adding kernel check feature.
2025-01-04 20:34:20 -08:00
Nicolas "Pixel" Noble
6e6018a880 Clarifying getFrameCount, and making it reliable. 2025-01-01 19:02:44 -08:00
Nicolas "Pixel" Noble
0eb0d767a6 Adding kernel check feature. 2024-12-31 23:49:08 -08:00
Nicolas "Pixel" Noble
220296e572 Catering for the 8MB case in psyqo's chained DMA.
The previous mechanism was a nice trick to allow for only a lui to load the constant required for the end marker, but it turns out this is a valid address in the 8MB range, so let's actually use the proper marker here instead. It shouldn't really affect codegen much.
2024-12-30 23:22:13 -08:00
johnbaumann
06310894e6
Merge branch 'grumpycoders:main' into psyqo_multitap_additions 2024-12-30 22:40:56 -06:00
Nicolas "Pixel" Noble
b300bc474e Adding more coroutine glue, and cleaned up demo. 2024-12-29 08:58:37 -08:00
Nicolas "Pixel" Noble
b2080e1454 Fixing various coroutine issues.
- Fixes compilation problem with void nested coroutines.
- Fixes memory leak.
- Fixes eager nested coroutines.
2024-12-28 22:19:41 -08:00
Nicolas "Pixel" Noble
bd48984c1c Adding more co-routines goodies to psyqo.
- A Coroutine is now an awaitable itself, enabling coroutine cascading.
- Added a `delay` awaitable in the GPU class.
- Added another coroutine demo for all this.
2024-12-28 20:41:56 -08:00
johnbaumann
07b6a961f4 Add getter for raw halfword. Fix+tidy example 2024-12-21 09:04:02 -06:00
johnbaumann
de152b9956
Fix(?) adc numbering, adc styling
Half asleep, forgive any derps
2024-12-13 00:16:54 -06:00
John Baumann
6ce813b397 Add getters for adc+pad type, update multitap example 2024-12-13 00:10:08 -06:00
Elias Daler
961a58b369 Fix angle format specifier (it's signed, not unsigned) 2024-12-02 23:35:35 +01:00
John Baumann
5cde72e8fd Add reset call for CDRomDevice 2024-11-26 21:51:24 -06:00
Elias Daler
10a33e1b83 Fix interpolation issues on HW
Also safeguard against bad psyqo::Color being passed into the primitives
when it can potentially affect the command (e.g. in setColor/setColorA).
2024-11-17 23:50:40 +01:00
Nicolas Noble
0fdfcd35c0
Merge pull request #1790 from nicolasnoble/better-cxx
Better c++ support.
2024-10-23 19:46:24 -07:00
Nicolas 'Pixel' Noble
6ac48420d9 Having a crt0 for C++ which:
- passes the arguments throught
- uses pcsx_exit
- implements strlen and memchr as weak symbols
- implements std::terminate
- calls pcsx_exit on abort
2024-10-23 18:17:07 -07:00
Nicolas Noble
e9dc935c94
Merge pull request #1788 from nicolasnoble/prim-color-interpolate
Adding interpolateColors to gouraud primitives.
2024-10-22 23:19:13 -07:00
Nicolas "Pixel" Noble
63459798c4 Making the bump allocator more generic.
Also, breaks established API, unfortunately.
2024-10-22 21:29:19 -07:00
Nicolas "Pixel" Noble
d4f7ad6fad Adding interpolateColors to gouraud primitives.
This needs to be used with the GTE pre-loaded with IR0 and the far color registers.
2024-10-22 20:02:22 -07:00
Jan Racek
a06067ddf5
Fixed mac0 value casting in psyqo cube example and implemented Nicolas' inline assembly fix 2024-10-22 20:40:05 +02:00
Elias Daler
f20f438b27 Fix bug in writeSafe<PseudoRegister::Translation> 2024-10-21 17:28:22 +02:00
nicolasnoble
3ada28e39b [Chores] Format code 2024-10-20 05:58:52 +00:00
Nicolas "Pixel" Noble
09643701fb Changing psyqo's DMA modes
- Chained DMA needs to use GPU DMA mode 2.
- Normal DMA can't go beyond 8 words per block.
2024-10-19 22:03:23 -07:00
Nicolas Noble
7fe9703d48
Shuffling things a bit to using constexpr. 2024-10-18 08:56:42 -07:00
Jan Racek
38749d0730
Assiging default values to zIndex and mac0 variables so Codacy is happy 2024-10-18 11:39:19 +02:00
Jan Racek
44c3418d45
Added a cube example to psyqo 2024-10-18 11:28:25 +02:00
Nicolas "Pixel" Noble
eb494cf013 Proper order for fractional value. 2024-10-13 02:35:50 -07:00
Nicolas "Pixel" Noble
4381d3039f Various fixed point improvements.
- FixedPoint now takes an optional `scale` template parameter, when rendering values.
- FixedPoint can now also use bytes as its storage mechanism. These two changes allow for example FixedPoint to handle colors scaled from 0 to 255, with 255 being 1.0.
- Adding printf and vprintf to xprintf.h, outputting to tty's stdout.
- Adding %f, %e, and %a support to xprintf, allowing for fixed point values to be rendered naturally.
- Cleaned up xprintf a bit.
2024-10-13 02:26:23 -07:00