llvmpipe: just bin whole tiles for now
authorKeith Whitwell <keithw@vmware.com>
Fri, 9 Oct 2009 14:10:15 +0000 (15:10 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 9 Oct 2009 14:10:15 +0000 (15:10 +0100)
src/gallium/drivers/llvmpipe/lp_rast_tri.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c

index 7110afb9d57b1a31007c34110c016535f2855b18..1041cd2463c2565d4fbc6600a5263d5deb0725ef 100644 (file)
@@ -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;
index 5c402259df0213645c6ace1db2265dad630dc087..857fb6a9f880f3dfb9f784ad4e5a5c163f658f42 100644 (file)
@@ -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: