Mesa (lp-binning): llvmpipe: rast_tri updates

Keith Whitwell keithw at kemper.freedesktop.org
Thu Oct 8 18:18:00 UTC 2009


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Thu Oct  8 19:14:46 2009 +0100

llvmpipe: rast_tri updates

---

 src/gallium/drivers/llvmpipe/lp_rast_tri.c |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 63e956f..896ac25 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
@@ -29,18 +29,10 @@
  * Rasterization for binned triangles within a tile
  */
 
-#include "lp_context.h"
 #include "lp_quad.h"
 #include "lp_quad_pipe.h"
-#include "lp_setup.h"
-#include "lp_state.h"
-#include "draw/draw_context.h"
-#include "draw/draw_private.h"
-#include "draw/draw_vertex.h"
-#include "pipe/p_shader_tokens.h"
-#include "pipe/p_thread.h"
-#include "util/u_math.h"
-#include "util/u_memory.h"
+#include "lp_rast_priv.h"
+
 
 #define BLOCKSIZE 4
 
@@ -48,7 +40,7 @@
 /* Convert 8x8 block into four runs of quads and render each in turn.
  */
 #if (BLOCKSIZE == 8)
-static void block_full( struct triangle *tri, int x, int y )
+static void block_full( struct lp_rast_triangle *tri, int x, int y )
 {
    struct quad_header *ptrs[4];
    int i;
@@ -79,7 +71,7 @@ static void block_full( struct triangle *tri, int x, int y )
    }
 }
 #else
-static void block_full( struct triangle *tri, int x, int y )
+static void block_full( struct lp_rast_triangle *tri, int x, int y )
 {
    struct quad_header *ptrs[4];
    int iy;
@@ -108,7 +100,7 @@ do_quad( struct lp_rasterizer *rast,
 	 int x, int y,
 	 float c1, float c2, float c3 )
 {
-   struct triangle *tri = rast->tri;
+   struct lp_rast_triangle *tri = rast->tri;
    struct quad_header *quad = &rast->quad[0];
 
    float xstep1 = -tri->dy12;
@@ -151,7 +143,7 @@ do_quad( struct lp_rasterizer *rast,
  * the quad:
  */
 static void
-do_block( struct triangle *tri,
+do_block( struct lp_rast_triangle *tri,
 	 int x, int y,
 	 float c1,
 	 float c2,




More information about the mesa-commit mailing list