[Mesa-dev] [PATCH 0/4] virgl: debug printing cleanups

Erik Faye-Lund erik.faye-lund at collabora.com
Mon Aug 20 12:10:23 UTC 2018


Here's some patches that cleans up debug-printing in virgl a bit, by
using the existing debug environment-variable infrastructure so things
can be turned on and off explicitly.

This version introduce two flags:
- verbose: enables verbose output. This is useful to get information on
  some internal details, which would usually be overly chatty.
- tgsi: outputs the textual TGSI representation. This is useful for
  debugging virglrenderer when it's often useful to see what TGSI
  triggered for instance a malformed shader.

Both of these are flags for the VIRGL_DEBUG environement variable.

Erik Faye-Lund (4):
  virgl: delete commented out fprintf-call
  virgl: replace fprintf-call with debug_printf
  virgl: introduce $VIRGL_DEBUG=verbose
  virgl: add debug-switch to output TGSI

 src/gallium/drivers/virgl/virgl_context.c |  6 ++++--
 src/gallium/drivers/virgl/virgl_encode.c  |  6 +++++-
 src/gallium/drivers/virgl/virgl_encode.h  |  1 -
 src/gallium/drivers/virgl/virgl_screen.c  | 10 ++++++++++
 src/gallium/drivers/virgl/virgl_screen.h  |  4 ++++
 5 files changed, 23 insertions(+), 4 deletions(-)

-- 
2.17.1



More information about the mesa-dev mailing list