diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-19 15:35:22 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-19 15:35:22 +0100 |
commit | c898eae27221bd23b11327553c215a94369eeb99 (patch) | |
tree | f6b0cd6e87175ed5824db31ebf8bfb44bcec4dd7 /src/gallium/auxiliary/draw/draw_pt_fetch.c | |
parent | 507fbe2d327efb8d608ce8e07436b97321560808 (diff) | |
download | external_mesa3d-c898eae27221bd23b11327553c215a94369eeb99.zip external_mesa3d-c898eae27221bd23b11327553c215a94369eeb99.tar.gz external_mesa3d-c898eae27221bd23b11327553c215a94369eeb99.tar.bz2 |
draw: always emit header in draw_pt_fetch.c
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c index 1aed251..037e376 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c @@ -54,7 +54,6 @@ struct pt_fetch { * */ void draw_pt_fetch_prepare( struct pt_fetch *fetch, - boolean emit_header, unsigned vertex_size ) { struct draw_context *draw = fetch->draw; @@ -66,16 +65,13 @@ void draw_pt_fetch_prepare( struct pt_fetch *fetch, memset(&key, 0, sizeof(key)); - /* If PT_SHADE is not set, then we are creating post-shader - * vertices, meaning that we need to emit/leave space for a vertex - * header. + /* Always emit/leave space for a vertex header. * * It's worth considering whether the vertex headers should contain * a pointer to the 'data', rather than having it inline. * Something to look at after we've fully switched over to the pt * paths. */ - if (emit_header) { /* Need to set header->vertex_id = 0xffff somehow. */ @@ -121,7 +117,7 @@ void draw_pt_fetch_prepare( struct pt_fetch *fetch, fetch->translate = translate_create( &key ); - if (emit_header) { + { static struct vertex_header vh = { 0, 0, 0, 0xffff }; fetch->translate->set_buffer(fetch->translate, draw->nr_vertex_buffers, |