summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup.c
diff options
context:
space:
mode:
authorHui Qi Tay <[email protected]>2010-07-19 15:23:09 +0100
committerKeith Whitwell <[email protected]>2010-08-27 13:08:54 +0100
commit5286dd701640976ffc328e8e85fb3830746851a1 (patch)
tree9d11aca1063f70218e52135b78540619092b2da3 /src/gallium/drivers/llvmpipe/lp_setup.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_setup.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 9aa6c4bf38e..4c8275665e5 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -485,7 +485,14 @@ lp_setup_set_triangle_state( struct lp_setup_context *setup,
}
}
+void
+lp_setup_set_line_state( struct lp_setup_context *setup,
+ float line_width)
+{
+ LP_DBG(DEBUG_SETUP, "%s\n", __FUNCTION__);
+ setup->line_width = line_width;
+}
void
lp_setup_set_fs_inputs( struct lp_setup_context *setup,