Cell: add cell_set_sampler_texture()
authorBrian <brian.paul@tungstengraphics.com>
Tue, 22 Jan 2008 03:25:44 +0000 (20:25 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 22 Jan 2008 04:17:21 +0000 (21:17 -0700)
src/mesa/pipe/cell/ppu/cell_state.h
src/mesa/pipe/cell/ppu/cell_state_sampler.c

index d2091f8..fbca7c9 100644 (file)
@@ -86,6 +86,11 @@ void cell_set_constant_buffer(struct pipe_context *pipe,
 void cell_set_polygon_stipple( struct pipe_context *,
                                const struct pipe_poly_stipple * );
 
+void
+cell_set_sampler_texture(struct pipe_context *pipe,
+                         unsigned sampler,
+                         struct pipe_texture *texture);
+
 void cell_set_scissor_state( struct pipe_context *,
                              const struct pipe_scissor_state * );
 
index 1e7d4f0..ae1eeb4 100644 (file)
@@ -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;
+}