Mesa (lp-binning): llvmpipe: just bin whole tiles for now

Keith Whitwell keithw at kemper.freedesktop.org
Fri Oct 9 14:10:24 UTC 2009


Module: Mesa
Branch: lp-binning
Commit: da1808ccc9a53fdd5aa69efa800ece0d3d075b07
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=da1808ccc9a53fdd5aa69efa800ece0d3d075b07

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Oct  9 15:10:15 2009 +0100

llvmpipe: just bin whole tiles for now

---

 src/gallium/drivers/llvmpipe/lp_rast_tri.c  |    2 ++
 src/gallium/drivers/llvmpipe/lp_setup_tri.c |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 7110afb..1041cd2 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
@@ -188,6 +188,8 @@ void lp_rast_triangle( struct lp_rasterizer *rast,
    float x0, y0;
    float c1, c2, c3;
 
+   debug_printf("%s\n", __FUNCTION__);
+
    if (miny == maxy || minx == maxx) {
       debug_printf("%s: non-intersecting triangle in bin\n", __FUNCTION__);
       return;
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 5c40225..857fb6a 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -421,10 +421,15 @@ do_triangle_ccw(struct setup_context *setup,
 	    }
 	    else 
 	    {
+#if 1
+               bin_command( &setup->tile[x][y], lp_rast_shade_tile,
+                            lp_rast_arg_inputs(&tri->inputs) );
+#else
                /* shade partial tile */
 	       bin_command( &setup->tile[x][y], 
                             lp_rast_triangle, 
                             lp_rast_arg_triangle(tri) );
+#endif
 	    }
 
 	    /* Iterate cx values across the region:




More information about the mesa-commit mailing list