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

index bdbaae59875b3e94d4ca6ded65433c541fd47ce0,37f2700fa14eb2c6828c603856f4a49dc220aeec..9f5b4e63236ba785c3de9f7143f833d861704864
@@@ -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,
index a96c2cad9dc910141a4c67dbd1c07e74192cc872,57ce5b17a23280ac48a5e7f69cfac27bc0c41512..c152b4413fcf00fc31d06ef7cbbe57744d60c3c9
@@@ -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
index a89cb633e0232610d801d05dbeec07576223fed2,87ad30ac30bff775ae8f21f76b817c62bbe96869..a4ac9ad9a7bc74860ba02674c1eab7569ae396ad
@@@ -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)) {
index 7409c3c4881b23d24ca30c612e84154b0892836d,70a92fd4c6bfd053471f951b1c018f8d159ad6f3..3826a9e41a68985284971b3ebf9049ba8a482cc8
@@@ -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);
 -}
index 60fa9cef82492fdcfd05b051e9f9e12ab99aa24b,564c35f78958d26864bbdfa35b6268f0390489a9..d2f8085b42123c3a0327e281fe28460b58298c9b
@@@ -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