Mesa (master): st/mesa: Silence chatty debug printf
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 23 05:43:36 UTC 2019
Module: Mesa
Branch: master
Commit: c352cdf970fd8a42d7b2d3b3375e0633d9d870bb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c352cdf970fd8a42d7b2d3b3375e0633d9d870bb
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Oct 22 18:01:10 2019 -0700
st/mesa: Silence chatty debug printf
Other debug_printf's in this file are in if (0) blocks.
Trivial.
---
src/mesa/state_tracker/st_format.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index a84905942ed..9ade30de70b 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -637,8 +637,10 @@ st_mesa_format_to_pipe_format(const struct st_context *st,
return PIPE_FORMAT_ATC_RGBA_INTERPOLATED;
default:
- debug_printf("%s(mesa_format=%s) -> NONE\n",
- __func__, _mesa_get_format_name(mesaFormat));
+ if (0) {
+ debug_printf("%s(mesa_format=%s) -> NONE\n",
+ __func__, _mesa_get_format_name(mesaFormat));
+ }
return PIPE_FORMAT_NONE;
}
}
More information about the mesa-commit
mailing list