Cell: add cell_set_sampler_texture()

This commit is contained in:
Brian 2008-01-21 20:25:44 -07:00
parent 4211d2d461
commit fd9c03fc42
2 changed files with 19 additions and 0 deletions

View 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 * );

View 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;
}