Mesa (lp-surface-tiling): llvmpipe: convert points/ lines to triangles with draw module

Brian Paul brianp at kemper.freedesktop.org
Thu Apr 8 21:25:42 UTC 2010


Module: Mesa
Branch: lp-surface-tiling
Commit: 563a7e3cc552fdcfcaf9ac0d4b1683c3ba2ae732
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=563a7e3cc552fdcfcaf9ac0d4b1683c3ba2ae732

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Apr  8 14:48:21 2010 -0600

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.

---

 src/gallium/drivers/llvmpipe/lp_context.c |    4 ++++
 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 951a695..0786e40 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);




More information about the mesa-commit mailing list