Skip to content

Commit bcbc325

Browse files
authored
Merge pull request #13 from rickgaiser/for-ps2dev
Fix GL_QUADS, remove doxygen
2 parents 4b006ee + 20c8f65 commit bcbc325

File tree

7 files changed

+562
-617
lines changed

7 files changed

+562
-617
lines changed

examples/tricked_out/vu1_renderers.vsm

Lines changed: 0 additions & 26 deletions
This file was deleted.

vu1/general_nospec_quad.vcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ xform_loop_lid: --LoopCS 1,3
6262
mfir.w gs_vert_2, adc_bit
6363
store_xyzf gs_vert_2, kOutputQPerV
6464

65+
; We are loading the 4th vertex of the quad, as the 3rd vertex of the triangle strip
6566
do_bfc_vert kInputQPerV+kInputQPerV+kInputQPerV, kOutputQPerV+kOutputQPerV,
6667
+ xformed_vert_3, gs_vert_3
6768
clip_vert xformed_vert_3
6869

70+
; We are loading the 3rd vertex of the quad, as the 4th vertex of the triangle strip
6971
do_bfc_vert kInputQPerV+kInputQPerV, kOutputQPerV+kOutputQPerV+kOutputQPerV,
7072
+ xformed_vert_4, gs_vert_4
7173
clip_vert xformed_vert_4
@@ -88,6 +90,12 @@ xform_loop_lid: --LoopCS 1,3
8890
mfir.w gs_vert_4, new_adc_bit
8991
store_xyzf gs_vert_4, kOutputQPerV+kOutputQPerV+kOutputQPerV
9092

93+
; Swap normals of vertex 3 and 4
94+
lq.xyz tmp3, 1+kInputQPerV+kInputQPerV(next_input)
95+
lq.xyz tmp4, 1+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
96+
sq.xyz tmp3, 1+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
97+
sq.xyz tmp4, 1+kInputQPerV+kInputQPerV(next_input)
98+
9199
next_io 4
92100

93101
loop_io xform_loop_lid

vu1/general_nospec_quad_vcl.vsm

Lines changed: 203 additions & 197 deletions
Large diffs are not rendered by default.

vu1/general_pv_diff_quad.vcl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ xform_loop_lid: --LoopCS 1,3
6262
mfir.w gs_vert_2, adc_bit
6363
store_xyzf gs_vert_2, kOutputQPerV
6464

65+
; We are loading the 4th vertex of the quad, as the 3rd vertex of the triangle strip
6566
do_bfc_vert kInputQPerV+kInputQPerV+kInputQPerV, kOutputQPerV+kOutputQPerV,
6667
+ xformed_vert_3, gs_vert_3
6768
clip_vert xformed_vert_3
6869

70+
; We are loading the 3rd vertex of the quad, as the 4th vertex of the triangle strip
6971
do_bfc_vert kInputQPerV+kInputQPerV, kOutputQPerV+kOutputQPerV+kOutputQPerV,
7072
+ xformed_vert_4, gs_vert_4
7173
clip_vert xformed_vert_4
@@ -88,6 +90,18 @@ xform_loop_lid: --LoopCS 1,3
8890
mfir.w gs_vert_4, new_adc_bit
8991
store_xyzf gs_vert_4, kOutputQPerV+kOutputQPerV+kOutputQPerV
9092

93+
; Swap normals of vertex 3 and 4
94+
lq.xyz tmp3, 1+kInputQPerV+kInputQPerV(next_input)
95+
lq.xyz tmp4, 1+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
96+
sq.xyz tmp3, 1+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
97+
sq.xyz tmp4, 1+kInputQPerV+kInputQPerV(next_input)
98+
99+
; Swap (per vertex) colors of vertex 3 and 4
100+
lq.xyz tmp3, 3+kInputQPerV+kInputQPerV(next_input)
101+
lq.xyz tmp4, 3+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
102+
sq.xyz tmp3, 3+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
103+
sq.xyz tmp4, 3+kInputQPerV+kInputQPerV(next_input)
104+
91105
next_io 4
92106

93107
loop_io xform_loop_lid

vu1/general_pv_diff_quad_vcl.vsm

Lines changed: 126 additions & 197 deletions
Large diffs are not rendered by default.

vu1/general_quad.vcl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ xform_loop_lid: --LoopCS 1,3
6262
mfir.w gs_vert_2, adc_bit
6363
store_xyzf gs_vert_2, kOutputQPerV
6464

65+
; We are loading the 4th vertex of the quad, as the 3rd vertex of the triangle strip
6566
do_bfc_vert kInputQPerV+kInputQPerV+kInputQPerV, kOutputQPerV+kOutputQPerV,
6667
+ xformed_vert_3, gs_vert_3
6768
clip_vert xformed_vert_3
6869

70+
; We are loading the 3rd vertex of the quad, as the 4th vertex of the triangle strip
6971
do_bfc_vert kInputQPerV+kInputQPerV, kOutputQPerV+kOutputQPerV+kOutputQPerV,
7072
+ xformed_vert_4, gs_vert_4
7173
clip_vert xformed_vert_4
@@ -88,6 +90,12 @@ xform_loop_lid: --LoopCS 1,3
8890
mfir.w gs_vert_4, new_adc_bit
8991
store_xyzf gs_vert_4, kOutputQPerV+kOutputQPerV+kOutputQPerV
9092

93+
; Swap normals of vertex 3 and 4
94+
lq.xyz tmp3, 1+kInputQPerV+kInputQPerV(next_input)
95+
lq.xyz tmp4, 1+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
96+
sq.xyz tmp3, 1+kInputQPerV+kInputQPerV+kInputQPerV(next_input)
97+
sq.xyz tmp4, 1+kInputQPerV+kInputQPerV(next_input)
98+
9199
next_io 4
92100

93101
loop_io xform_loop_lid

0 commit comments

Comments
 (0)