summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/ppu/cell_state_sampler.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-21 20:25:44 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-21 21:17:21 -0700
commitfd9c03fc428b325103051d4543e464def71d0b53 (patch)
tree4bc93a9f424ab942305653af65eddc33788b1db0 /src/mesa/pipe/cell/ppu/cell_state_sampler.c
parent4211d2d4618ace01c70b86f69d8d0d297f83d74d (diff)
Cell: add cell_set_sampler_texture()
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_state_sampler.c')
-rw-r--r--src/mesa/pipe/cell/ppu/cell_state_sampler.c14
1 files changed, 14 insertions, 0 deletions
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;
+}