diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-12 16:11:52 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-12 16:11:52 -0600 |
commit | 5ab221549d5cdbf72817ff612464d83256765389 (patch) | |
tree | 7c9b69d81068d874b96a3b240c519318596e4855 /src/gallium/drivers/cell/spu/spu_tri.c | |
parent | d598a5d2301faea810a2449db7a32ff48e80b979 (diff) |
cell: evaluate multiple fragment inputs
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_tri.c')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_tri.c | 8 |
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 b7faae6d60..0a8fb56a62 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); |