diff options
author | Hui Qi Tay <[email protected]> | 2010-07-19 15:23:09 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-08-27 13:08:54 +0100 |
commit | 5286dd701640976ffc328e8e85fb3830746851a1 (patch) | |
tree | 9d11aca1063f70218e52135b78540619092b2da3 /src/gallium/drivers/llvmpipe/lp_state_rasterizer.c | |
parent | c95ca04b63eadb61add249531c1041aaf5b525d6 (diff) |
llvmpipe: native rasterization for lines
Rasterize lines directly by treating them as 4-sided polygons.
Still need to check the exact pixel rasteration.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_rasterizer.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_rasterizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_rasterizer.c b/src/gallium/drivers/llvmpipe/lp_state_rasterizer.c index afd3e0b21c9..67b985aa242 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_rasterizer.c +++ b/src/gallium/drivers/llvmpipe/lp_state_rasterizer.c @@ -73,6 +73,8 @@ llvmpipe_bind_rasterizer_state(struct pipe_context *pipe, void *handle) llvmpipe->rasterizer->gl_rasterization_rules); lp_setup_set_flatshade_first( llvmpipe->setup, llvmpipe->rasterizer->flatshade_first); + lp_setup_set_line_state( llvmpipe->setup, + llvmpipe->rasterizer->line_width); } llvmpipe->dirty |= LP_NEW_RASTERIZER; |