diff options
author | Keith Whitwell <[email protected]> | 2009-11-04 15:25:42 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-11-04 15:25:42 +0000 |
commit | 9706a83bc959ba8445d0258e47639b44da2238fc (patch) | |
tree | cc491c38358191eb05902c6f39da068123e7c10d /src/gallium/drivers/i965/brw_pipe_misc.c | |
parent | a09b3d50975e68c13c0421d770f3865ad2a1257c (diff) |
i965g: hook up more pipe_context functions
Diffstat (limited to 'src/gallium/drivers/i965/brw_pipe_misc.c')
-rw-r--r-- | src/gallium/drivers/i965/brw_pipe_misc.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_misc.c b/src/gallium/drivers/i965/brw_pipe_misc.c index fb8d7ecc59a..a7ccde59170 100644 --- a/src/gallium/drivers/i965/brw_pipe_misc.c +++ b/src/gallium/drivers/i965/brw_pipe_misc.c @@ -1,7 +1,12 @@ +#include "brw_context.h" +#include "brw_structs.h" +#include "brw_defines.h" + static void brw_set_polygon_stipple( struct pipe_context *pipe, - const unsigned *stipple ) + const struct pipe_poly_stipple *stip ) { + struct brw_context *brw = brw_context(pipe); struct brw_polygon_stipple *bps = &brw->curr.bps; GLuint i; @@ -10,5 +15,17 @@ static void brw_set_polygon_stipple( struct pipe_context *pipe, bps->header.length = sizeof *bps/4-2; for (i = 0; i < 32; i++) - bps->stipple[i] = brw->curr.poly_stipple[i]; /* don't invert */ + bps->stipple[i] = stip->stipple[i]; /* don't invert */ +} + + + +void brw_pipe_misc_init( struct brw_context *brw ) +{ + brw->base.set_polygon_stipple = brw_set_polygon_stipple; +} + + +void brw_pipe_misc_cleanup( struct brw_context *brw ) +{ } |