summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_screen.h
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2018-08-20 13:08:55 +0200
committerErik Faye-Lund <[email protected]>2018-08-28 14:13:43 +0200
commit4ab06cc56e66118c4834ed8bbeed05e727bc34f7 (patch)
treeda30c1ceb4aa324ed0ad9c888247cf928fc79e8b /src/gallium/drivers/virgl/virgl_screen.h
parent1b2444dffc93b21f93f06f58a0fc5875477b52cc (diff)
virgl: introduce $VIRGL_DEBUG=verbose
This adds an environment-varaible that can be used for driver-specific flags, as well as a flag for it to enable verbose output. While we're at it, quiet some overly chatty debug-output by default. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-By: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.h b/src/gallium/drivers/virgl/virgl_screen.h
index dcf5816d603..8334d162424 100644
--- a/src/gallium/drivers/virgl/virgl_screen.h
+++ b/src/gallium/drivers/virgl/virgl_screen.h
@@ -27,6 +27,9 @@
#include "util/slab.h"
#include "virgl_winsys.h"
+#define VIRGL_DEBUG_VERBOSE 1
+extern int virgl_debug;
+
struct virgl_screen {
struct pipe_screen base;