diff options
author | Erik Faye-Lund <[email protected]> | 2018-08-20 13:08:55 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-08-28 14:13:43 +0200 |
commit | 4ab06cc56e66118c4834ed8bbeed05e727bc34f7 (patch) | |
tree | da30c1ceb4aa324ed0ad9c888247cf928fc79e8b /src/gallium/drivers/virgl/virgl_encode.c | |
parent | 1b2444dffc93b21f93f06f58a0fc5875477b52cc (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_encode.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index d56484e0dd0..a13c3982ec3 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -261,7 +261,8 @@ int virgl_encode_shader_state(struct virgl_context *ctx, bret = tgsi_dump_str(tokens, TGSI_DUMP_FLOAT_AS_HEX, str, str_total_size); if (bret == false) { - debug_printf("Failed to translate shader in available space - trying again\n"); + if (virgl_debug & VIRGL_DEBUG_VERBOSE) + debug_printf("Failed to translate shader in available space - trying again\n"); old_size = str_total_size; str_total_size = 65536 * ++retry_size; str = REALLOC(str, old_size, str_total_size); |