aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_context.c
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_context.c
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_context.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c
index dc1dd2d3c29..edc03f5dcf2 100644
--- a/src/gallium/drivers/virgl/virgl_context.c
+++ b/src/gallium/drivers/virgl/virgl_context.c
@@ -1115,8 +1115,10 @@ static void virgl_get_sample_position(struct pipe_context *ctx,
}
out_value[0] = ((bits >> 4) & 0xf) / 16.0f;
out_value[1] = (bits & 0xf) / 16.0f;
- debug_printf("VIRGL: sample postion [%2d/%2d] = (%f, %f)\n",
- index, sample_count, out_value[0], out_value[1]);
+
+ if (virgl_debug & VIRGL_DEBUG_VERBOSE)
+ debug_printf("VIRGL: sample postion [%2d/%2d] = (%f, %f)\n",
+ index, sample_count, out_value[0], out_value[1]);
}
struct pipe_context *virgl_context_create(struct pipe_screen *pscreen,