nouveau: Fix warning for void function returning value. Add missing include for pipe_...
authorPatrice Mandin <patmandin@gmail.com>
Fri, 5 Feb 2010 18:42:33 +0000 (19:42 +0100)
committerPatrice Mandin <patmandin@gmail.com>
Fri, 5 Feb 2010 18:42:33 +0000 (19:42 +0100)
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
src/gallium/drivers/nv30/nv30_vbo.c
src/gallium/drivers/nv40/nv40_vbo.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c

index d50055fdd33996583e0059868e72489db692a3b0..a83ddf11546dabf0554bfecb3ce50beae07116d6 100644 (file)
@@ -223,7 +223,6 @@ nv30_draw_arrays(struct pipe_context *pipe,
        }
 
        pipe->flush(pipe, 0, NULL);
-       return TRUE;
 }
 
 static INLINE void
@@ -382,7 +381,7 @@ nv30_draw_elements_inline(struct pipe_context *pipe,
        map = pipe_buffer_map(pscreen, ib, PIPE_BUFFER_USAGE_CPU_READ);
        if (!ib) {
                NOUVEAU_ERR("failed mapping ib\n");
-               return FALSE;
+               return;
        }
 
        switch (ib_size) {
@@ -424,7 +423,7 @@ nv30_draw_elements_vbo(struct pipe_context *pipe,
                        FIRE_RING(chan);
                        continue;
                }
-               
+
                BEGIN_RING(chan, rankine, NV34TCL_VERTEX_BEGIN_END, 1);
                OUT_RING  (chan, nvgl_primitive(mode));
 
@@ -468,7 +467,7 @@ nv30_draw_elements(struct pipe_context *pipe,
        if (FORCE_SWTNL || !nv30_state_validate(nv30)) {
                /*return nv30_draw_elements_swtnl(pipe, NULL, 0,
                                                mode, start, count);*/
-               return; 
+               return;
        }
 
        if (idxbuf) {
index d1c76c03cddf4793ca8df112b309530d7ab9a064..1e14edc56a7f96dcbd1a61032f7e2644b44c89c2 100644 (file)
@@ -382,7 +382,7 @@ nv40_draw_elements_inline(struct pipe_context *pipe,
        map = pipe_buffer_map(pscreen, ib, PIPE_BUFFER_USAGE_CPU_READ);
        if (!ib) {
                NOUVEAU_ERR("failed mapping ib\n");
-               return FALSE;
+               return;
        }
 
        switch (ib_size) {
@@ -424,7 +424,7 @@ nv40_draw_elements_vbo(struct pipe_context *pipe,
                        FIRE_RING(chan);
                        continue;
                }
-               
+
                BEGIN_RING(chan, curie, NV40TCL_BEGIN_END, 1);
                OUT_RING  (chan, nvgl_primitive(mode));
 
index 3f41e5d0cebea8485707e62f03de7c01eb5e2706..8e5f821c8a36aadea7aab0a2341a07150c080fe4 100644 (file)
@@ -2,6 +2,7 @@
 #include "pipe/p_state.h"
 #include "util/u_format.h"
 #include "util/u_memory.h"
+#include "util/u_inlines.h"
 
 #include "nouveau_drm_api.h"