nir: print shader_info bools with the value
authorMihai Preda <mhpreda@gmail.com>
Wed, 30 Nov 2022 09:45:07 +0000 (11:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Dec 2022 12:59:33 +0000 (12:59 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19570>

src/compiler/nir/nir_print.c

index 2871e38..48e58db 100644 (file)
@@ -1812,7 +1812,7 @@ print_nz_unsigned(FILE *fp, const char *label, unsigned value) {
 static void
 print_nz_bool(FILE *fp, const char *label, bool value) {
    if (value)
-      fprintf(fp, "%s\n", label);
+      fprintf(fp, "%s: true\n", label);
 }
 
 static void