sp_state_blend.c File Reference

Include dependency graph for sp_state_blend.c:

Go to the source code of this file.

Functions

void * softpipe_create_blend_state (struct pipe_context *pipe, const struct pipe_blend_state *blend)
void softpipe_bind_blend_state (struct pipe_context *pipe, void *blend)
void softpipe_delete_blend_state (struct pipe_context *pipe, void *blend)
void softpipe_set_blend_color (struct pipe_context *pipe, const struct pipe_blend_color *blend_color)
void * softpipe_create_depth_stencil_state (struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *depth_stencil)
 XXX move someday? Or consolidate all these simple state setters into one file.
void softpipe_bind_depth_stencil_state (struct pipe_context *pipe, void *depth_stencil)
void softpipe_delete_depth_stencil_state (struct pipe_context *pipe, void *depth)


Function Documentation

void softpipe_bind_blend_state ( struct pipe_context pipe,
void *  blend 
)

Definition at line 43 of file sp_state_blend.c.

References softpipe_context::blend, softpipe_context::dirty, softpipe_context(), and SP_NEW_BLEND.

00045 {
00046    struct softpipe_context *softpipe = softpipe_context(pipe);
00047 
00048    softpipe->blend = (const struct pipe_blend_state *)blend;
00049 
00050    softpipe->dirty |= SP_NEW_BLEND;
00051 }

void softpipe_bind_depth_stencil_state ( struct pipe_context pipe,
void *  depth_stencil 
)

Definition at line 84 of file sp_state_blend.c.

References softpipe_context::depth_stencil, softpipe_context::dirty, softpipe_context(), and SP_NEW_DEPTH_STENCIL_ALPHA.

00086 {
00087    struct softpipe_context *softpipe = softpipe_context(pipe);
00088 
00089    softpipe->depth_stencil = (const struct pipe_depth_stencil_alpha_state *)depth_stencil;
00090 
00091    softpipe->dirty |= SP_NEW_DEPTH_STENCIL_ALPHA;
00092 }

void* softpipe_create_blend_state ( struct pipe_context pipe,
const struct pipe_blend_state blend 
)

Definition at line 37 of file sp_state_blend.c.

References mem_dup().

00039 {
00040    return mem_dup(blend, sizeof(*blend));
00041 }

void* softpipe_create_depth_stencil_state ( struct pipe_context pipe,
const struct pipe_depth_stencil_alpha_state depth_stencil 
)

XXX move someday? Or consolidate all these simple state setters into one file.

Definition at line 77 of file sp_state_blend.c.

References mem_dup().

00079 {
00080    return mem_dup(depth_stencil, sizeof(*depth_stencil));
00081 }

void softpipe_delete_blend_state ( struct pipe_context pipe,
void *  blend 
)

Definition at line 53 of file sp_state_blend.c.

References FREE.

00055 {
00056    FREE( blend );
00057 }

void softpipe_delete_depth_stencil_state ( struct pipe_context pipe,
void *  depth 
)

Definition at line 95 of file sp_state_blend.c.

References FREE.

00096 {
00097    FREE( depth );
00098 }

void softpipe_set_blend_color ( struct pipe_context pipe,
const struct pipe_blend_color blend_color 
)

Definition at line 60 of file sp_state_blend.c.

References softpipe_context::blend_color, softpipe_context::dirty, softpipe_context(), and SP_NEW_BLEND.

00062 {
00063    struct softpipe_context *softpipe = softpipe_context(pipe);
00064 
00065    softpipe->blend_color = *blend_color;
00066 
00067    softpipe->dirty |= SP_NEW_BLEND;
00068 }


Generated on Tue Sep 29 06:25:41 2009 for Gallium3D by  doxygen 1.5.4