fix build when HAVE_LIBDRM_RADEON is defined
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 26 May 2009 14:33:23 +0000 (10:33 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 26 May 2009 14:33:23 +0000 (10:33 -0400)
src/mesa/drivers/dri/radeon/radeon_common.h
src/mesa/drivers/dri/radeon/radeon_common_context.h

index dcfd5a67e234a32b26578b34030e1a1393b92bf5..aa6058c68426c5b15fc8284ca351dc4e23c8ffff 100644 (file)
@@ -5,9 +5,11 @@
 #include "radeon_dma.h"
 #include "radeon_texture.h"
 
+#ifndef HAVE_LIBDRM_RADEON
 #ifndef RADEON_DEBUG_BO
 #define RADEON_DEBUG_BO 1
 #endif
+#endif
 
 #define TRI_CLEAR_COLOR_BITS (BUFFER_BIT_BACK_LEFT |                   \
                              BUFFER_BIT_FRONT_LEFT |                   \
index 233a150d425800e4a3b814898d21ef7e93014d25..07e60a28a4689e5877359772e7d795f0d0acbd61 100644 (file)
@@ -560,8 +560,10 @@ extern int RADEON_DEBUG;
 #define RADEON_DEBUG           0
 #endif
 
+#ifndef HAVE_LIBDRM_RADEON
 #ifndef RADEON_DEBUG_BO
 #define RADEON_DEBUG_BO 1
 #endif
+#endif
 
 #endif