radeon: Minor warnings cleanup.
authorEric Anholt <eric@anholt.net>
Wed, 12 Aug 2009 18:12:46 +0000 (11:12 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 12 Aug 2009 18:28:34 +0000 (11:28 -0700)
src/mesa/drivers/dri/r600/r600_context.h
src/mesa/drivers/dri/r600/r700_clear.c
src/mesa/drivers/dri/r600/r700_oglprog.c
src/mesa/drivers/dri/r600/r700_state.c
src/mesa/drivers/dri/radeon/radeon_common_context.c

index fbb8164af5968d31402b968e76b1f681cd568f0a..30ddce682c191f3b1283a3fad0057635cab5dbfa 100644 (file)
@@ -158,6 +158,17 @@ extern GLboolean r700InitChipObject(context_t *context);
 extern GLboolean r700SendContextStates(context_t *context);
 extern GLboolean r700SendViewportState(context_t *context, int id);
 extern GLboolean r700SendRenderTargetState(context_t *context, int id);
+extern GLboolean r700SendTextureState(context_t *context);
+extern GLboolean r700SendDepthTargetState(context_t *context);
+extern GLboolean r700SendUCPState(context_t *context);
+extern GLboolean r700SendFSState(context_t *context);
+extern void r700EmitState(GLcontext * ctx);
+
+extern GLboolean r700SyncSurf(context_t *context,
+                             struct radeon_bo *pbo,
+                             uint32_t read_domain,
+                             uint32_t write_domain,
+                             uint32_t sync_type);
 
 extern int       r700SetupStreams(GLcontext * ctx);
 extern void      r700SetupVTXConstants(GLcontext  * ctx, 
index e84be3862217da6e18c37a74c8572a23978c0a1c..05d4af331e04f1f6d62150e7f5137c407bfcdd88 100644 (file)
@@ -31,6 +31,7 @@
 #include "main/imports.h"
 #include "main/mtypes.h"
 #include "main/enums.h"
+#include "swrast/swrast.h"
 
 #include "radeon_lock.h"
 #include "r600_context.h"
index 36de143b1a743c5ad0c30b398db94f14d2d8f920..c49b90c1cc9d633ebae2bb0c440822adfb9bb7ad 100644 (file)
@@ -33,6 +33,7 @@
 #include "tnl/tnl.h"
 
 #include "r600_context.h"
+#include "r600_emit.h"
 
 #include "r700_oglprog.h"
 #include "r700_fragprog.h"
@@ -87,7 +88,6 @@ static void r700DeleteProgram(GLcontext * ctx, struct gl_program *prog)
 {
     struct r700_vertex_program   * vp;
     struct r700_fragment_program * fp;
-    context_t *context = R700_CONTEXT(ctx);
 
     switch (prog->Target) 
     {
index e95f52400a2bbc0586f23df4bcb439efae73fb0a..7f54cf9f565d5aa7adc857ac8b0ac5b9ffc6e47e 100644 (file)
@@ -179,8 +179,6 @@ static void r700FetchStateParameter(GLcontext * ctx,
                                                const gl_state_index state[STATE_LENGTH],
                                                GLfloat * value)
 {
-       context_t *context = R700_CONTEXT(ctx);
-
     /* TODO */
 }
 
index d68aa2bd62a8e25e48d073e1e868fdba5f37dac7..3a9468e88d2daab0c65953491fe4e689eabd53b8 100644 (file)
@@ -295,11 +295,10 @@ void radeonDestroyContext(__DRIcontextPrivate *driContextPriv )
        GET_CURRENT_CONTEXT(ctx);
        radeonContextPtr radeon = (radeonContextPtr) driContextPriv->driverPrivate;
        radeonContextPtr current = ctx ? RADEON_CONTEXT(ctx) : NULL;
-
-    /* +r6/r7 */
-    __DRIscreenPrivate *sPriv = driContextPriv->driScreenPriv;
+#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R600) /* +r6/r7 */
+       __DRIscreenPrivate *sPriv = driContextPriv->driScreenPriv;
        radeonScreenPtr screen = (radeonScreenPtr) (sPriv->private);
-    /* --------- */
+#endif
 
        if (radeon == current) {
                radeon_firevertices(radeon);