summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-25 14:10:32 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-25 14:20:25 +0100
commit14cfcb18204233d3d4848ea8e579465983df3d75 (patch)
tree9ab56640b1fb2caf5ca34e6995574a1afc230194 /src
parent4e46e6f52b88ca7df40a52cf994e6fe1e4b9870e (diff)
draw: no need to special-case elts/get_elts for varray frontend
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c
index d6585bbfd0..c9c5d18313 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -53,8 +53,6 @@ draw_pt_arrays(struct draw_context *draw,
struct draw_pt_front_end *frontend = NULL;
struct draw_pt_middle_end *middle = NULL;
unsigned opt = 0;
- pt_elt_func get_elt = 0;
- void *elts = 0;
if (!draw->render) {
opt |= PT_PIPELINE;
@@ -83,18 +81,18 @@ draw_pt_arrays(struct draw_context *draw,
/* Pick the right frontend
*/
if (draw->pt.user.elts ||
- count >= 256) {
+ count >= 256) {
frontend = draw->pt.front.vcache;
- get_elt = draw_pt_elt_func(draw);
- elts = draw_pt_elt_ptr(draw, start);
} else {
frontend = draw->pt.front.varray;
- elts = start;
}
frontend->prepare( frontend, prim, middle, opt );
- frontend->run(frontend, get_elt, elts, count);
+ frontend->run(frontend,
+ draw_pt_elt_func(draw),
+ draw_pt_elt_ptr(draw, start),
+ count);
frontend->finish( frontend );