summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_rast_tri.c
diff options
context:
space:
mode:
authorHui Qi Tay <hqtay@vmware.com>2010-07-19 15:23:09 +0100
committerKeith Whitwell <keithw@vmware.com>2010-08-27 13:08:54 +0100
commit5286dd701640976ffc328e8e85fb3830746851a1 (patch)
tree9d11aca1063f70218e52135b78540619092b2da3 /src/gallium/drivers/llvmpipe/lp_rast_tri.c
parentc95ca04b63eadb61add249531c1041aaf5b525d6 (diff)
llvmpipe: native rasterization for lines
Rasterize lines directly by treating them as 4-sided polygons. Still need to check the exact pixel rasteration.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast_tri.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast_tri.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 673f67386b..8d729c7481 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
@@ -157,6 +157,10 @@ build_mask_linear(int c, int dcdx, int dcdy)
#define NR_PLANES 7
#include "lp_rast_tri_tmp.h"
+#define TAG(x) x##_8
+#define NR_PLANES 8
+#include "lp_rast_tri_tmp.h"
+
/* Special case for 3 plane triangle which is contained entirely
* within a 16x16 block.