svga: don't use debug code in update_state() in release builds
authorBrian Paul <brianp@vmware.com>
Mon, 14 Dec 2015 16:32:48 +0000 (09:32 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 17 Dec 2015 02:38:15 +0000 (19:38 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_state.c

index 722b369fd4b479979c0d9021321e89d0d3da2590..4479a271262cbdf0b30860a9449dcebb26e3ef61 100644 (file)
@@ -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;