diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-25 08:17:52 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-25 08:20:10 -0700 |
commit | 235da629dceb23bfddea1eadfcf771d2794d6119 (patch) | |
tree | 12bb5e34b092ae19fa62dc89433fca5ae6dfea83 /src/mesa/pipe/cell/ppu/cell_state_derived.c | |
parent | 4c4f691069411c77b33a6bfca64766f861cbc823 (diff) |
Cell: propogate vertex info to SPUs, use it for attrib interpolation
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_state_derived.c')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_state_derived.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_state_derived.c b/src/mesa/pipe/cell/ppu/cell_state_derived.c index f3b3ae8544..56daf5dfde 100644 --- a/src/mesa/pipe/cell/ppu/cell_state_derived.c +++ b/src/mesa/pipe/cell/ppu/cell_state_derived.c @@ -30,6 +30,7 @@ #include "pipe/draw/draw_context.h" #include "pipe/draw/draw_vertex.h" #include "cell_context.h" +#include "cell_batch.h" #include "cell_state.h" #include "cell_state_emit.h" @@ -85,6 +86,7 @@ calculate_vertex_layout( struct cell_context *cell ) assert(src >= 0); draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_POS, src); + /* * Loop over fragment shader inputs, searching for the matching output * from the vertex shader. @@ -126,6 +128,9 @@ calculate_vertex_layout( struct cell_context *cell ) } draw_compute_vertex_size(vinfo); + + /* XXX only signal this if format really changes */ + cell->dirty |= CELL_NEW_VERTEX_INFO; } |