From c2c0983215033524f23779d9deb25da6e5ebc733 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 14 Dec 2015 09:32:48 -0700 Subject: [PATCH] svga: don't use debug code in update_state() in release builds Reviewed-by: Jose Fonseca --- src/gallium/drivers/svga/svga_state.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2