Cell: fix asst. warnings
authorBrian <brian.paul@tungstengraphics.com>
Thu, 24 Jan 2008 23:39:34 +0000 (16:39 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 24 Jan 2008 23:39:34 +0000 (16:39 -0700)
src/mesa/pipe/cell/ppu/cell_batch.h
src/mesa/pipe/cell/ppu/cell_clear.c
src/mesa/pipe/cell/ppu/cell_clear.h
src/mesa/pipe/cell/ppu/cell_context.c
src/mesa/pipe/cell/ppu/cell_flush.c

index 7a5c6392d748fcf7e5a80c4796b69464543cba31..47e3287626bc77f5d6716e418205cbb03e293443 100644 (file)
@@ -29,6 +29,8 @@
 #ifndef CELL_BATCH_H
 #define CELL_BATCH_H
 
+#include "pipe/p_compiler.h"
+
 
 struct cell_context;
 
index 9f7cfdcb4614e5403c938f0c5b2a184c1ce68ebe..e01640b9944809f912eed6f9e168b54699474491 100644 (file)
@@ -39,6 +39,7 @@
 #include "cell_clear.h"
 #include "cell_context.h"
 #include "cell_batch.h"
+#include "cell_flush.h"
 #include "cell_spu.h"
 
 
@@ -47,7 +48,7 @@ cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps,
                    unsigned clearValue)
 {
    struct cell_context *cell = cell_context(pipe);
-   uint i;
+   /*uint i;*/
    uint surfIndex;
 
    if (!cell->cbuf_map[0])
index 4c69c4c89f301ddc9a76c766f01370685ffe622b..ff47d43f4cd48d3cc3a8964beb952fea334b6efb 100644 (file)
@@ -26,8 +26,8 @@
  **************************************************************************/
 
 
-#ifndef CELL_SURFACE_H
-#define CELL_SURFACE_H
+#ifndef CELL_CLEAR_H
+#define CELL_CLEAR_H
 
 
 struct pipe_context;
@@ -40,4 +40,4 @@ cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps,
 
 
 
-#endif /* CELL_SURFACE_H */
+#endif /* CELL_CLEAR_H */
index 98e13d8dde716365282efe461241beec599ba16f..8cb0c48f4072eb8d41e7774ec7f0a9d3fb571945 100644 (file)
@@ -56,7 +56,7 @@ static boolean
 cell_is_format_supported( struct pipe_context *pipe,
                           enum pipe_format format, uint type )
 {
-   struct cell_context *cell = cell_context( pipe );
+   /*struct cell_context *cell = cell_context( pipe );*/
 
    switch (type) {
    case PIPE_TEXTURE:
index 33cbe2a085918c6bacc264486d5b8f8098a5b5bd..d54eeb8524dae20700f3adcc0f6bfab1247fa061 100644 (file)
@@ -27,6 +27,7 @@
 
 
 #include "cell_context.h"
+#include "cell_batch.h"
 #include "cell_flush.h"
 #include "cell_spu.h"
 #include "cell_render.h"