summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-19 18:41:53 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-19 18:41:53 +0100
commitbfd179776f5ded75c2134a54f0a57a1579118cd0 (patch)
treecf327b4cd431bb5ed1c33896c37db7632ed10b2f /src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
parentb1158a5e0031aa33a71baa7bc14ca2c0fe0dabc4 (diff)
draw: add missing translate->set_buffer for fetch emit path
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_emit.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_emit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
index 1b9b3bfaa6..70d136dce6 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
@@ -185,6 +185,14 @@ static void fetch_emit_prepare( struct draw_pt_middle_end *middle,
}
feme->point_size = draw->rasterizer->point_size;
+
+ for (i = 0; i < draw->pt.nr_vertex_buffers; i++) {
+ feme->translate->set_buffer(feme->translate,
+ i,
+ ((char *)draw->pt.user.vbuffer[i] +
+ draw->pt.vertex_buffer[i].buffer_offset),
+ draw->pt.vertex_buffer[i].pitch );
+ }
}