gallium: plug in softpipe_set_edgeflags() function
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Apr 2008 21:59:08 +0000 (15:59 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Apr 2008 21:59:08 +0000 (15:59 -0600)
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_state.h

index 200fb415acfd41b00467100b16e0ca7a417ee171..f2ce0fdc6e9d2289f3ad7342ab11f8daecce6a6f 100644 (file)
@@ -178,6 +178,8 @@ softpipe_create( struct pipe_screen *screen,
 
    softpipe->pipe.draw_arrays = softpipe_draw_arrays;
    softpipe->pipe.draw_elements = softpipe_draw_elements;
+   softpipe->pipe.set_edgeflags = softpipe_set_edgeflags;
+
 
    softpipe->pipe.clear = softpipe_clear;
    softpipe->pipe.flush = softpipe_flush;
index 778291dded70f2579392b348fe9b7b0d400a262d..6c58f9909da0573771f7137f7e0f8462c598f38e 100644 (file)
@@ -170,3 +170,12 @@ softpipe_draw_elements(struct pipe_context *pipe,
 
    return TRUE;
 }
+
+
+void
+softpipe_set_edgeflags(struct pipe_context *pipe, const unsigned *edgeflags)
+{
+   struct softpipe_context *sp = softpipe_context(pipe);
+   draw_set_edgeflags(sp->draw, edgeflags);
+}
+
index 6e6501f5bc44f61fb9ff534f4ff83b96169c624f..45056502b8e5c141e1e7c78cacc707f637b1720a 100644 (file)
@@ -171,6 +171,9 @@ boolean softpipe_draw_elements(struct pipe_context *pipe,
                               unsigned indexSize,
                               unsigned mode, unsigned start, unsigned count);
 
+void
+softpipe_set_edgeflags(struct pipe_context *pipe, const unsigned *edgeflags);
+
 
 void
 softpipe_map_surfaces(struct softpipe_context *sp);