From fd9c03fc428b325103051d4543e464def71d0b53 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 21 Jan 2008 20:25:44 -0700 Subject: Cell: add cell_set_sampler_texture() --- src/mesa/pipe/cell/ppu/cell_state_sampler.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mesa/pipe/cell/ppu/cell_state_sampler.c') diff --git a/src/mesa/pipe/cell/ppu/cell_state_sampler.c b/src/mesa/pipe/cell/ppu/cell_state_sampler.c index 1e7d4f08b8..ae1eeb4620 100644 --- a/src/mesa/pipe/cell/ppu/cell_state_sampler.c +++ b/src/mesa/pipe/cell/ppu/cell_state_sampler.c @@ -66,3 +66,17 @@ cell_delete_sampler_state(struct pipe_context *pipe, { FREE( sampler ); } + + + +void +cell_set_sampler_texture(struct pipe_context *pipe, + unsigned sampler, + struct pipe_texture *texture) +{ + struct cell_context *cell = cell_context(pipe); + + cell->texture[sampler] = texture; + + cell->dirty |= CELL_NEW_TEXTURE; +} -- cgit v1.2.3