From cfeda4165b2845d2253d3082aa771a2346bac6a0 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 21 Jan 2008 21:15:43 -0700 Subject: Cell: initial support for sampler state --- src/mesa/pipe/cell/ppu/cell_state_emit.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/pipe/cell/ppu/cell_state_emit.c') 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)); + } } -- cgit v1.2.3