diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index c03ec4c9a97..a57c5b9df1f 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -36,6 +36,13 @@ #include "virgl_public.h" #include "virgl_context.h" +int virgl_debug = 0; +static const struct debug_named_value debug_options[] = { + { "verbose", VIRGL_DEBUG_VERBOSE, NULL }, + DEBUG_NAMED_VALUE_END +}; +DEBUG_GET_ONCE_FLAGS_OPTION(virgl_debug, "VIRGL_DEBUG", debug_options, 0) + static const char * virgl_get_vendor(struct pipe_screen *screen) { @@ -730,6 +737,8 @@ virgl_create_screen(struct virgl_winsys *vws) if (!screen) return NULL; + virgl_debug = debug_get_option_virgl_debug(); + screen->vws = vws; screen->base.get_name = virgl_get_name; screen->base.get_vendor = virgl_get_vendor; |