From: Alex Deucher Date: Tue, 26 May 2009 14:33:23 +0000 (-0400) Subject: fix build when HAVE_LIBDRM_RADEON is defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ced2f1b94c2bac8344f44e9474b1e363f65f4d3f;p=mesa.git fix build when HAVE_LIBDRM_RADEON is defined --- diff --git a/src/mesa/drivers/dri/radeon/radeon_common.h b/src/mesa/drivers/dri/radeon/radeon_common.h index dcfd5a67e23..aa6058c6842 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.h +++ b/src/mesa/drivers/dri/radeon/radeon_common.h @@ -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 | \ diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.h b/src/mesa/drivers/dri/radeon/radeon_common_context.h index 233a150d425..07e60a28a46 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.h @@ -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