mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
Cell: add cell_set_sampler_texture()
This commit is contained in:
parent
4211d2d461
commit
fd9c03fc42
2 changed files with 19 additions and 0 deletions
|
|
@ -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 * );
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue