summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-08 14:48:21 -0600
committerBrian Paul <brianp@vmware.com>2010-04-08 14:48:23 -0600
commit563a7e3cc552fdcfcaf9ac0d4b1683c3ba2ae732 (patch)
tree2f973b2ea07de354df9851c84bfa7d0a1e783e40 /src
parenta8aa763e8a717533f2b13bb6ea53cbccbede68c9 (diff)
downloadmesa-563a7e3cc552fdcfcaf9ac0d4b1683c3ba2ae732.tar.gz
llvmpipe: convert points/lines to triangles with draw module
This isn't the most efficient way to render points/lines but it allows us to run more tests.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c
index 951a695f964..0786e409ae6 100644
--- a/src/gallium/drivers/llvmpipe/lp_context.c
+++ b/src/gallium/drivers/llvmpipe/lp_context.c
@@ -198,6 +198,10 @@ llvmpipe_create_context( struct pipe_screen *screen, void *priv )
draw_install_aaline_stage(llvmpipe->draw, &llvmpipe->pipe);
draw_install_aapoint_stage(llvmpipe->draw, &llvmpipe->pipe);
+ /* convert points and lines into triangles: */
+ draw_wide_point_threshold(llvmpipe->draw, 0.0);
+ draw_wide_line_threshold(llvmpipe->draw, 0.0);
+
#if USE_DRAW_STAGE_PSTIPPLE
/* Do polygon stipple w/ texture map + frag prog? */
draw_install_pstipple_stage(llvmpipe->draw, &llvmpipe->pipe);