diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-21 21:15:43 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-21 21:17:21 -0700 |
commit | cfeda4165b2845d2253d3082aa771a2346bac6a0 (patch) | |
tree | 098dcd9c5afb62c3ebd1c50966471db06fff46c0 /src/mesa/pipe/cell/ppu | |
parent | 0c085717cbb63f00223dc1df3d514f1ef2aaeda1 (diff) |
Cell: initial support for sampler state
Diffstat (limited to 'src/mesa/pipe/cell/ppu')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_state_emit.c | 7 |
1 files changed, 7 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 e1a1458f39..e7d14d0d25 100644 --- a/src/mesa/pipe/cell/ppu/cell_state_emit.c +++ b/src/mesa/pipe/cell/ppu/cell_state_emit.c @@ -42,4 +42,11 @@ cell_emit_state(struct cell_context *cell) cell_batch_append(cell, cell->depth_stencil, sizeof(struct pipe_depth_stencil_alpha_state)); } + + if (cell->dirty & CELL_NEW_SAMPLER) { + uint cmd = CELL_CMD_STATE_SAMPLER; + cell_batch_append(cell, &cmd, 4); + cell_batch_append(cell, cell->sampler[0], + sizeof(struct pipe_sampler_state)); + } } |