Mesa (7.9): llvmpipe: use draw module to draw sprites
Brian Paul
brianp at kemper.freedesktop.org
Wed Sep 22 14:26:03 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 3cdfc6252394541e28e8290b7539bd1b132ea004
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cdfc6252394541e28e8290b7539bd1b132ea004
Author: Brian Paul <brianp at vmware.com>
Date: Wed Sep 22 08:22:34 2010 -0600
llvmpipe: use draw module to draw sprites
For the 7.9 branch, this is simpler than merging the sprite-coord branch
and less likely to break other drivers.
Fixes fd.o bug 29849.
---
src/gallium/drivers/llvmpipe/lp_context.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c
index 39f2c60..11099ee 100644
--- a/src/gallium/drivers/llvmpipe/lp_context.c
+++ b/src/gallium/drivers/llvmpipe/lp_context.c
@@ -155,12 +155,9 @@ llvmpipe_create_context( struct pipe_screen *screen, void *priv )
draw_install_aapoint_stage(llvmpipe->draw, &llvmpipe->pipe);
draw_install_pstipple_stage(llvmpipe->draw, &llvmpipe->pipe);
- /* convert points and lines into triangles:
- * (otherwise, draw points and lines natively)
- */
- draw_wide_point_sprites(llvmpipe->draw, FALSE);
- draw_enable_point_sprites(llvmpipe->draw, FALSE);
- draw_wide_point_threshold(llvmpipe->draw, 10000.0);
+ /* convert points/sprites into triangles. Draw non-AA lines natively */
+ draw_wide_point_sprites(llvmpipe->draw, TRUE);
+ draw_enable_point_sprites(llvmpipe->draw, TRUE);
draw_wide_line_threshold(llvmpipe->draw, 10000.0);
#if USE_DRAW_STAGE_PSTIPPLE
More information about the mesa-commit
mailing list