cell: evaluate multiple fragment inputs
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 22:11:52 +0000 (16:11 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 12 Sep 2008 22:11:52 +0000 (16:11 -0600)
src/gallium/drivers/cell/spu/spu_tri.c

index b7faae6d60c504c7bd661088f69e6d65da2282d9..0a8fb56a62c25c9be6870bb995cd5ba298fd6bc0 100644 (file)
@@ -356,8 +356,14 @@ emit_quad( int x, int y, mask_t mask )
          vector float fragZ = eval_z((float) x, (float) y);
 
          /* setup inputs */
+#if 0
          eval_coeff_soa(1, (float) x, (float) y, inputs);
-
+#else
+         uint i;
+         for (i = 0; i < spu.vertex_info.num_attribs; i++) {
+            eval_coeff_soa(i+1, (float) x, (float) y, inputs + i * 4);
+         }
+#endif
          ASSERT(spu.fragment_program);
          ASSERT(spu.fragment_ops);