panfrost: Remove some more prints to stdout
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 21 Feb 2020 12:47:38 +0000 (13:47 +0100)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 26 Feb 2020 13:02:59 +0000 (14:02 +0100)
They can confuse test runners.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3876>

src/gallium/drivers/panfrost/nir/nir_lower_framebuffer.c
src/panfrost/encoder/pan_format.c
src/panfrost/midgard/midgard_compile.c

index 887b3662dc306211116026ca5a81b2b9032a0646..f575a63b731cc76e8ce8346a61784dd89b72b3c8 100644 (file)
@@ -219,7 +219,7 @@ nir_shader_to_native(nir_builder *b,
       return nir_format_pack_11f11f10f(b, c_shader);
 
    default:
-      printf("%s\n", desc->name);
+      fprintf(stderr, "%s\n", desc->name);
       unreachable("Unknown format name");
    }
 }
@@ -267,7 +267,7 @@ nir_native_to_shader(nir_builder *b,
    }
 
    default:
-      printf("%s\n", desc->name);
+      fprintf(stderr, "%s\n", desc->name);
       unreachable("Unknown format name");
    }
 }
index 80253072e89512162ce95b15af93e99baac7d36e..205f722dd7167ef6fcb1bc31eb11b02bf63aafb4 100644 (file)
@@ -218,7 +218,7 @@ panfrost_find_format(const struct util_format_description *desc)
                 break;
 
         default:
-                printf("%s\n", util_format_name(desc->format));
+                fprintf(stderr, "%s\n", util_format_name(desc->format));
                 unreachable("Invalid format type");
         }
 
index 7dad7560a191ed4d2b0a996f6623c9d9ae92550b..bce87ee2d455ac9b826b376c5f9153ee07def724 100644 (file)
@@ -1837,7 +1837,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
                 break;
 
         default:
-                printf ("Unhandled intrinsic %s\n", nir_intrinsic_infos[instr->intrinsic].name);
+                fprintf(stderr, "Unhandled intrinsic %s\n", nir_intrinsic_infos[instr->intrinsic].name);
                 assert(0);
                 break;
         }
@@ -2091,7 +2091,7 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr,
                 }
 
                 default: {
-                        printf ("Unknown texture source type: %d\n", instr->src[i].src_type);
+                        fprintf(stderr, "Unknown texture source type: %d\n", instr->src[i].src_type);
                         assert(0);
                 }
                 }
@@ -2121,7 +2121,7 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr)
                 emit_sysval_read(ctx, &instr->instr, ~0, 4, 0);
                 break;
         default: {
-                printf ("Unhandled texture op: %d\n", instr->op);
+                fprintf(stderr, "Unhandled texture op: %d\n", instr->op);
                 assert(0);
         }
         }