10 Commits

Author SHA1 Message Date
Ahmad Abdallah 126e414e07 Fix GXGetLightPos writing Y component to Z (#204) 2026-05-23 15:52:46 -06:00
Jasper St. Pierre 1bd972429e gx: Fix scissor width/height handling (#148)
* Not a big deal if we're using our own lib, but officially, the scissor offset is 342, not 340.
* aurora was subtracting the scissor offset for lt/tp, but not for rt/bm; fix that.
* Handle empty scissors
2026-04-30 10:40:43 -06:00
Luke Street c05e7aace1 Viewport scaling rework & IR configuration (#127)
This is a breaking change: `GXSetViewport`, `GXSetScissor`, `GXSetTexCopySrc`, `GXSetTexCopyDst` now accept logical coords relative to the `VIConfigure` EFB size.

`GXSetViewportRender` and `GXSetScissorRender` are used to override the scaled viewport/scissor from the logical coords.
2026-04-18 14:10:32 -06:00
Luke Street b1bf531884 FIFOify texture binding (#109)
* FIFOify texture binding

* Use __cntlzw helper

* Some cleanup

* Fix texture eviction & cleanup
2026-04-09 00:14:00 -06:00
CraftyBoss 3744e52a6a Store 16 bits for each scissor corner, instead of 11 (#92)
* store 16 bits for each scissor corner, instead of 11

* add comments to notify changes to bit sizes in scissor registers
2026-04-05 00:19:57 -06:00
Luke Street 42f46ae99f Implement indirect texturing (kinda works) 2026-03-12 00:05:19 -06:00
Luke Street 6e96710482 Add pull_request event to CI; rename SetViewportCommand->Viewport 2026-03-05 10:17:03 -07:00
Dávid Balatoni 604232c4ff Implement GXGetViewportv (#33) 2026-03-05 10:09:26 -07:00
Luke Street a600b0b84c Rewrite attribute buffer, matrix & stream handling
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.
2025-04-14 17:17:59 -06:00
Phillip Stephens d20c467fec Initial split of aurora into core, gx, and vi libraries, needs more re-org 2025-04-04 19:19:31 -07:00