draw: always emit header in draw_pt_fetch.c
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 19 Apr 2008 14:35:22 +0000 (15:35 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 19 Apr 2008 14:35:22 +0000 (15:35 +0100)
src/gallium/auxiliary/draw/draw_pt.h
src/gallium/auxiliary/draw/draw_pt_fetch.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c

index 1119e9c6b8ae59a755bfa8005bc8ef7d11ef35cd..eaf8e0374a414adffcbcd125a8ba56d2243cb50c 100644 (file)
@@ -176,7 +176,6 @@ struct pt_emit *draw_pt_emit_create( struct draw_context *draw );
 
 struct pt_fetch;
 void draw_pt_fetch_prepare( struct pt_fetch *fetch,
-                           boolean emit_header,
                            unsigned vertex_size );
 
 void draw_pt_fetch_run( struct pt_fetch *fetch,
index 1aed251c85a768bea5ef7f75502242353ce45c9c..037e3765dad01451534f360facaee09d3cb3194a 100644 (file)
@@ -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, 
index 0b9e8d15ba9e945d5ca6187c45ab98a2fae0bd96..560f1bcd92f7a7acc52626310829ee40a0a3801b 100644 (file)
@@ -71,7 +71,6 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
    
 
    draw_pt_fetch_prepare( fpme->fetch, 
-                         (opt & (PT_CLIPTEST | PT_PIPELINE)) != 0,
                          fpme->vertex_size );
 
    /* XXX: it's not really gl rasterization rules we care about here,