This commit is contained in:
2026-07-06 18:15:34 -04:00
parent ffcd43c1ea
commit b29fc7dc02
4 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -8,10 +8,10 @@
#undef atom_offset
#define atom_offset(tag, name) atom_offset_##tag##_##name
// --- atom: floor_tri (51 words) ---
// --- atom: floor_tri (32 words) ---
#define _atom_offset_culling_floor_tri_exit 17
#define _atom_offset_bounds_chk_floor_tri_exit 3
#define _atom_offset_culling_floor_tri_exit 17
#define _atom_offset_bounds_chk_floor_tri_exit 3
enum {
atom_offset_culling_floor_tri_exit = _atom_offset_culling_floor_tri_exit,
+11 -11
View File
@@ -22,18 +22,18 @@
#pragma region Baked Atoms
internal MipsAtom_(floor_tri) {
internal MipsCode code_floor_tri [] __attribute__((aligned (4))) = {
// T0-T2 allocated
// mac_load_tri_indices(R_T0, R_T1, R_T2),
load_half_u(R_T0, R_FaceCur, 0 * S_(S2))
, load_half_u(R_T1, R_FaceCur, 1 * S_(S2))
, load_half_u(R_T2, R_FaceCur, 2 * S_(S2))
,
// mac_load_tri_verts( R_T0, R_T1, R_T2),
shift_ll(R_AT, R_T0, 3), add_u(R_AT, R_AT, R_VertBase), load_word(R_V0, R_AT, 0), load_word(R_V1, R_AT, 4), gte_mt(R_V0, C2_VXY0), gte_mt(R_V1, C2_VZ0)
, shift_ll(R_AT, R_T1, 3), add_u(R_AT, R_AT, R_VertBase), load_word(R_V0, R_AT, 0), load_word(R_V1, R_AT, 4), gte_mt(R_V0, C2_VXY1), gte_mt(R_V1, C2_VZ1)
, shift_ll(R_AT, R_T2, 3), add_u(R_AT, R_AT, R_VertBase), load_word(R_V0, R_AT, 0), load_word(R_V1, R_AT, 4), gte_mt(R_V0, C2_VXY2), gte_mt(R_V1, C2_VZ2)
,
mac_load_tri_indices(R_T0, R_T1, R_T2),
// load_half_u(R_T0, R_FaceCur, 0 * S_(S2))
// , load_half_u(R_T1, R_FaceCur, 1 * S_(S2))
// , load_half_u(R_T2, R_FaceCur, 2 * S_(S2))
// ,
mac_load_tri_verts( R_T0, R_T1, R_T2),
// shift_ll(R_AT, R_T0, 3), add_u(R_AT, R_AT, R_VertBase), load_word(R_V0, R_AT, 0), load_word(R_V1, R_AT, 4), gte_mt(R_V0, C2_VXY0), gte_mt(R_V1, C2_VZ0)
// , shift_ll(R_AT, R_T1, 3), add_u(R_AT, R_AT, R_VertBase), load_word(R_V0, R_AT, 0), load_word(R_V1, R_AT, 4), gte_mt(R_V0, C2_VXY1), gte_mt(R_V1, C2_VZ1)
// , shift_ll(R_AT, R_T2, 3), add_u(R_AT, R_AT, R_VertBase), load_word(R_V0, R_AT, 0), load_word(R_V1, R_AT, 4), gte_mt(R_V0, C2_VXY2), gte_mt(R_V1, C2_VZ2)
// ,
/* 3. Execute Math */
nop, nop, gte_cmdw_rotate_translate_perspective_triple,