summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-12-14 09:32:48 -0700
committerBrian Paul <[email protected]>2015-12-16 19:38:15 -0700
commitc2c0983215033524f23779d9deb25da6e5ebc733 (patch)
tree20b04dac1f2161ae1297c8e1c855bd2785d71768 /src/gallium/drivers/svga
parentaeee7f2a4dc7ceddace91ef5e91790483f4597e0 (diff)
svga: don't use debug code in update_state() in release builds
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_state.c4
1 files changed, 4 insertions, 0 deletions
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;