mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
gallium: Make printing info on debug builds default off
This commit silences the printing off most of the debug information when running debug builds. The big culprits are: the tgsi sanity checker that gets run on all shaders on debug; all the options; and finaly the cpu caps printer.
This commit is contained in:
parent
84ec422232
commit
7f5202be63
4 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@
|
|||
#include "tgsi_iterate.h"
|
||||
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(print_sanity, "TGSI_PRINT_SANITY", TRUE)
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(print_sanity, "TGSI_PRINT_SANITY", FALSE)
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ extern "C" {
|
|||
|
||||
/* Check the given token stream for errors and common mistakes.
|
||||
* Diagnostic messages are printed out to the debug output, and is
|
||||
* controlled by the debug option TGSI_PRINT_SANITY (default true).
|
||||
* controlled by the debug option TGSI_PRINT_SANITY (default false).
|
||||
* Returns TRUE if there are no errors, even though there could be some warnings.
|
||||
*/
|
||||
boolean
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(dump_cpu, "GALLIUM_DUMP_CPU", TRUE)
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(dump_cpu, "GALLIUM_DUMP_CPU", FALSE)
|
||||
|
||||
|
||||
struct util_cpu_caps util_cpu_caps;
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ debug_get_option_should_print(void)
|
|||
* but its cool since we set first to false
|
||||
*/
|
||||
first = FALSE;
|
||||
value = debug_get_bool_option("GALLIUM_PRINT_OPTIONS", TRUE);
|
||||
value = debug_get_bool_option("GALLIUM_PRINT_OPTIONS", FALSE);
|
||||
/* XXX should we print this option? Currently it wont */
|
||||
return value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue