Merge commit 'origin/gallium-draw-retval'
authorKeith Whitwell <keithw@vmware.com>
Tue, 5 Jan 2010 14:13:40 +0000 (14:13 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 5 Jan 2010 14:13:40 +0000 (14:13 +0000)
Conflicts:
src/gallium/drivers/identity/id_context.c

19 files changed:
1  2 
src/gallium/drivers/cell/ppu/cell_draw_arrays.c
src/gallium/drivers/i915/i915_context.c
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/llvmpipe/lp_draw_arrays.c
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/nv04/nv04_vbo.c
src/gallium/drivers/nv10/nv10_vbo.c
src/gallium/drivers/nv20/nv20_vbo.c
src/gallium/drivers/nv30/nv30_context.h
src/gallium/drivers/nv30/nv30_vbo.c
src/gallium/drivers/nv40/nv40_context.h
src/gallium/drivers/nv40/nv40_draw.c
src/gallium/drivers/nv40/nv40_vbo.c
src/gallium/drivers/nv50/nv50_vbo.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_state.h
src/gallium/drivers/trace/tr_context.c
src/gallium/include/pipe/p_context.h

@@@ -45,7 -45,18 +45,7 @@@ identity_destroy(struct pipe_context *_
     free(id_pipe);
  }
  
- static boolean
+ static void
 -identity_set_edgeflags(struct pipe_context *_pipe,
 -                       const unsigned *bitfield)
 -{
 -   struct identity_context *id_pipe = identity_context(_pipe);
 -   struct pipe_context *pipe = id_pipe->pipe;
 -
 -   pipe->set_edgeflags(pipe,
 -                       bitfield);
 -}
 -
 -static void
  identity_draw_arrays(struct pipe_context *_pipe,
                       unsigned prim,
                       unsigned start,
@@@ -133,9 -125,16 +131,9 @@@ llvmpipe_draw_elements(struct pipe_cont
                         unsigned indexSize,
                         unsigned mode, unsigned start, unsigned count)
  {
-    return llvmpipe_draw_range_elements( pipe, indexBuffer,
-                                         indexSize,
-                                         0, 0xffffffff,
-                                         mode, start, count );
+    llvmpipe_draw_range_elements( pipe, indexBuffer,
+                                  indexSize,
+                                  0, 0xffffffff,
+                                  mode, start, count );
  }
  
 -
 -void
 -llvmpipe_set_edgeflags(struct pipe_context *pipe, const unsigned *edgeflags)
 -{
 -   struct llvmpipe_context *lp = llvmpipe_context(pipe);
 -   draw_set_edgeflags(lp->draw, edgeflags);
 -}
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -362,10 -361,9 +362,10 @@@ void r300_swtcl_draw_range_elements(str
  {
      struct r300_context* r300 = r300_context(pipe);
      int i;
 +    void* indices;
  
      if (!u_trim_pipe_prim(mode, &count)) {
-         return FALSE;
+         return;
      }
  
      if (r300_nothing_to_draw(r300)) {
@@@ -192,8 -177,16 +190,8 @@@ softpipe_draw_elements(struct pipe_cont
                         unsigned indexSize,
                         unsigned mode, unsigned start, unsigned count)
  {
-    return softpipe_draw_range_elements( pipe, indexBuffer,
-                                         indexSize,
-                                         0, 0xffffffff,
-                                         mode, start, count );
+    softpipe_draw_range_elements( pipe, indexBuffer,
+                                  indexSize,
+                                  0, 0xffffffff,
+                                  mode, start, count );
  }
 -
 -
 -void
 -softpipe_set_edgeflags(struct pipe_context *pipe, const unsigned *edgeflags)
 -{
 -   struct softpipe_context *sp = softpipe_context(pipe);
 -   draw_set_edgeflags(sp->draw, edgeflags);
 -}
@@@ -74,24 -82,16 +74,24 @@@ struct pipe_context 
      * Using this to quickly evaluate a specialized path in the draw
      * module.
      */
-    boolean (*draw_range_elements)( struct pipe_context *pipe,
-                                    struct pipe_buffer *indexBuffer,
-                                    unsigned indexSize,
-                                    unsigned minIndex,
-                                    unsigned maxIndex,
-                                    unsigned mode, 
-                                    unsigned start, 
-                                    unsigned count);
+    void (*draw_range_elements)( struct pipe_context *pipe,
+                                 struct pipe_buffer *indexBuffer,
+                                 unsigned indexSize,
+                                 unsigned minIndex,
+                                 unsigned maxIndex,
+                                 unsigned mode, 
+                                 unsigned start, 
+                                 unsigned count);
     /*@}*/
  
 +   /**
 +    * Predicate subsequent rendering on occlusion query result
 +    * \param query  the query predicate, or NULL if no predicate
 +    * \param mode  one of PIPE_COND_RENDER_x
 +    */
 +   void (*render_condition)( struct pipe_context *pipe,
 +                             struct pipe_query *query,
 +                             uint mode );
  
     /**
      * Query objects