From: Pauli Nieminen Date: Tue, 1 Sep 2009 22:28:46 +0000 (+0300) Subject: radeon: Fix debug output to filter out less critical messages instead of more critical. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f650e19dda3809e87c838b50b39669ea844a3b1;p=mesa.git radeon: Fix debug output to filter out less critical messages instead of more critical. --- diff --git a/src/mesa/drivers/dri/radeon/radeon_debug.h b/src/mesa/drivers/dri/radeon/radeon_debug.h index 3e1481dfa18..132e27351da 100644 --- a/src/mesa/drivers/dri/radeon/radeon_debug.h +++ b/src/mesa/drivers/dri/radeon/radeon_debug.h @@ -88,7 +88,7 @@ extern radeon_debug_type_t radeon_enabled_debug_types; static inline int radeon_is_debug_enabled(const radeon_debug_type_t type, const radeon_debug_level_t level) { - return RADEON_DEBUG_LEVEL <= level + return RADEON_DEBUG_LEVEL >= level && (type & radeon_enabled_debug_types); } /*