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_emit.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_emit.c')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_state_emit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_state_emit.c b/src/mesa/pipe/cell/ppu/cell_state_emit.c index e7d14d0d25..e5b7c92514 100644 --- a/src/mesa/pipe/cell/ppu/cell_state_emit.c +++ b/src/mesa/pipe/cell/ppu/cell_state_emit.c @@ -49,4 +49,10 @@ cell_emit_state(struct cell_context *cell) cell_batch_append(cell, cell->sampler[0], sizeof(struct pipe_sampler_state)); } + + if (cell->dirty & CELL_NEW_VERTEX_INFO) { + uint cmd = CELL_CMD_STATE_VERTEX_INFO; + cell_batch_append(cell, &cmd, 4); + cell_batch_append(cell, &cell->vertex_info, sizeof(struct vertex_info)); + } } |