* Sprinkle Tracy all over the project
* Move Tracy FetchContent to extern file, disable Tracy by default
* Use older CMake syntax for setting cache variables
* Fix test compile
* Rename ALIGN macro to AURORA_ALIGN
Needed because it conflicts with a macro in Apple's SDK headers on my macbook, and Tracy is now pulling in that header.
* Make vertex arrays set via FIFO properly
Adds a new GX_LOAD_AURORA FIFO command with a GX_LOAD_AURORA_ARRAYBASE subcommand. This enables us to pass 64-bit pointers & sizes in command lists and such.
Added GDSetArraySized and made GDSetArray/GDSetArrayRaw panic.
* Dropped this assert.
* Remove duplicated code
I accidentally re-introduced this while I was splitting the diffs for the other PR.
* OS memory start
OSInit()
MEM1 size configurable via AuroraConfiguration
Fancy guard pages (who knows if it'll be useful)
* OSGetTime() and OSGetTick()
* Fix OSPhysicalToCached etc for 64-bit pointers
* Specify memory size in OS boot info
Used by TP at least
* Fix MEM1Start/MEM1End definition
oops
* Implement some OS arena functions
* DEBUG -> NDEBUG
* Implement memory translation functions
I decided to remove the macros from the header given they're very unlikely to matter perf wise and it reduces code duplication.
There's no distinction between cached and uncached. Physical is relative to MEM1.
* Fix symbol mismatches from forgetting to include the header
* Implement OSReport and similar logging functions
* Fix OSBaseAddress
Ugh
* Implement OSGetPhysicalMemSize
* Fix usage of static for global variables
* Remove ../ prefixes from OS CMake file
CLion did this
* Remaining headers needed for TP to build
* Rider's "Unversioned Files" will keep trolling me
* Remove TP-specific OSReport functions
* Hardcode OS_BUS_CLOCK in os.h
TP has it referenced in an initializer, so relying on MEM1 being initialized is impossible.
* Import TP ARAM emulation code
* Guard against double OSInit() calls.
---------
Co-authored-by: Luke Street <luke@street.dev>
Now array attributes (GXSetArray) will be properly
fetched based on the vertex format. Buffers are
still assumed to be byte-swapped to little-endian.
Stream handling completely redone and many issues
resolved.
Eliminates matrix transposes. AURORA_NATIVE_MATRIX
is no longer necessary and removed.