r300: fix compiler warnings
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 2 May 2009 15:37:20 +0000 (17:37 +0200)
committerAlex Deucher <alexdeucher@gmail.com>
Fri, 8 May 2009 00:15:34 +0000 (20:15 -0400)
src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h
src/mesa/drivers/dri/radeon/radeon_common.c
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
src/mesa/drivers/dri/radeon/radeon_texture.c

index 6f1a0b453587bf3e8f43cf0a482fc6802499a90e..2d6b49257d5bfdb0c84f2c83d6a1bf07564939a2 100644 (file)
@@ -1,3 +1,5 @@
+#include <drm/radeon_cs.h>
+
 #ifndef RADEON_CS_WRAPPER_H
 #define RADEON_CS_WRAPPER_H
 
index ee3ee9ca504c396026f68143d49d5492abaeb766..daf03a98566a50c034e0e81e2625f99f7437f73d 100644 (file)
@@ -62,6 +62,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include "main/bufferobj.h"
 #include "main/buffers.h"
 #include "main/depth.h"
+#include "main/polygon.h"
 #include "main/shaders.h"
 #include "main/texstate.h"
 #include "main/varray.h"
index b47b095cf203991650a46241b62c4708a841416d..e4ee2b99151b055c7627b169866780f971bbdc85 100644 (file)
@@ -261,14 +261,6 @@ static int cs_set_age(struct radeon_cs *cs)
     return 0;
 }
 
-static void dump_cmdbuf(struct radeon_cs *cs)
-{
-  int i;
-  for (i = 0; i < cs->cdw; i++){
-    fprintf(stderr,"%x: %08x\n", i, cs->packets[i]);
-  }
-
-}
 static int cs_emit(struct radeon_cs *cs)
 {
     struct cs_manager_legacy *csm = (struct cs_manager_legacy*)cs->csm;
index 35ed54243116fe512afb7017c0e679e939408312..0f1d9c215840af6fffda81ca89066d2662ade8ce 100644 (file)
@@ -38,6 +38,7 @@
 #include "main/texstore.h"
 #include "main/teximage.h"
 #include "main/texobj.h"
+#include "main/texgetimage.h"
 
 #include "xmlpool.h"           /* for symbolic values of enum-type options */