aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/cell/ppu/cell_state_emit.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-21 21:15:43 -0700
committerBrian <[email protected]>2008-01-21 21:17:21 -0700
commitcfeda4165b2845d2253d3082aa771a2346bac6a0 (patch)
tree098dcd9c5afb62c3ebd1c50966471db06fff46c0 /src/mesa/pipe/cell/ppu/cell_state_emit.c
parent0c085717cbb63f00223dc1df3d514f1ef2aaeda1 (diff)
Cell: initial support for sampler state
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_state_emit.c')
-rw-r--r--src/mesa/pipe/cell/ppu/cell_state_emit.c7
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 e1a1458f39a..e7d14d0d252 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));
+ }
}