summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-12 16:11:52 -0600
committerBrian Paul <[email protected]>2008-09-12 16:11:52 -0600
commit5ab221549d5cdbf72817ff612464d83256765389 (patch)
tree7c9b69d81068d874b96a3b240c519318596e4855 /src/gallium
parentd598a5d2301faea810a2449db7a32ff48e80b979 (diff)
cell: evaluate multiple fragment inputs
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/cell/spu/spu_tri.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_tri.c b/src/gallium/drivers/cell/spu/spu_tri.c
index b7faae6d60c..0a8fb56a62c 100644
--- a/src/gallium/drivers/cell/spu/spu_tri.c
+++ b/src/gallium/drivers/cell/spu/spu_tri.c
@@ -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);