@@ -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