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 d2091f8edfa2529d4660c79298be1d01f0cda561..fbca7c95744b367da07153dbf1f23e24f10ce52d 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 1e7d4f08b8233d416eb094dfd33b472ac16c797d..ae1eeb4620377b35920fe4394b638bc3b5ac80b0 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;
+}