From: Brian Paul Date: Mon, 14 Dec 2015 16:32:48 +0000 (-0700) Subject: svga: don't use debug code in update_state() in release builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2c0983215033524f23779d9deb25da6e5ebc733;p=mesa.git svga: don't use debug code in update_state() in release builds Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/drivers/svga/svga_state.c b/src/gallium/drivers/svga/svga_state.c index 722b369fd4b..4479a271262 100644 --- a/src/gallium/drivers/svga/svga_state.c +++ b/src/gallium/drivers/svga/svga_state.c @@ -129,7 +129,11 @@ update_state(struct svga_context *svga, const struct svga_tracked_state *atoms[], unsigned *state) { +#ifdef DEBUG boolean debug = TRUE; +#else + boolean debug = FALSE; +#endif enum pipe_error ret = PIPE_OK; unsigned i;