sp_state_rasterizer.c File Reference

Include dependency graph for sp_state_rasterizer.c:

Go to the source code of this file.

Functions

void * softpipe_create_rasterizer_state (struct pipe_context *pipe, const struct pipe_rasterizer_state *rast)
void softpipe_bind_rasterizer_state (struct pipe_context *pipe, void *setup)
void softpipe_delete_rasterizer_state (struct pipe_context *pipe, void *rasterizer)


Function Documentation

void softpipe_bind_rasterizer_state ( struct pipe_context pipe,
void *  setup 
)

Definition at line 43 of file sp_state_rasterizer.c.

References softpipe_context::dirty, softpipe_context::draw, draw_set_rasterizer_state(), softpipe_context::rasterizer, softpipe_context(), and SP_NEW_RASTERIZER.

00045 {
00046    struct softpipe_context *softpipe = softpipe_context(pipe);
00047 
00048    /* pass-through to draw module */
00049    draw_set_rasterizer_state(softpipe->draw, setup);
00050 
00051    softpipe->rasterizer = (struct pipe_rasterizer_state *)setup;
00052 
00053    softpipe->dirty |= SP_NEW_RASTERIZER;
00054 }

void* softpipe_create_rasterizer_state ( struct pipe_context pipe,
const struct pipe_rasterizer_state rast 
)

Definition at line 37 of file sp_state_rasterizer.c.

References mem_dup().

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

void softpipe_delete_rasterizer_state ( struct pipe_context pipe,
void *  rasterizer 
)

Definition at line 56 of file sp_state_rasterizer.c.

References FREE.

00058 {
00059    FREE( rasterizer );
00060 }


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