diff options
author | Brian <[email protected]> | 2008-02-18 16:19:05 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-18 16:19:05 -0700 |
commit | aceeb80d4f706980aaf71b8e098d4c6718d8ac90 (patch) | |
tree | 23f402dc726b0f97e25e7b6e5d2c097362093ea0 /src/gallium/drivers/softpipe/sp_context.c | |
parent | 0448dbd64a2ef217349f4ada4777d432bc82e46d (diff) |
gallium: antialiased line drawing
New draw/prim stage: draw_aaline. When installed, lines are replaced by
textured quads to do antialiasing. The current user-defined fragment shader
is modified to do a texture fetch and modulate fragment alpha.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_context.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c index 5e98f190bbf..254c6adca44 100644 --- a/src/gallium/drivers/softpipe/sp_context.c +++ b/src/gallium/drivers/softpipe/sp_context.c @@ -327,6 +327,9 @@ struct pipe_context *softpipe_create( struct pipe_winsys *pipe_winsys, draw_set_rasterize_stage(softpipe->draw, softpipe->setup); } + /* enable aaline stage */ + draw_install_aaline_stage(softpipe->draw, &softpipe->pipe); + sp_init_surface_functions(softpipe); return &softpipe->pipe; |