intel/batch_decoder: Stop printing to stdout
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Apr 2020 21:38:56 +0000 (16:38 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 17:26:16 +0000 (17:26 +0000)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4597>

src/intel/common/gen_batch_decoder.c

index e03a5e1d26c1842f35f02938b86b6ef4e96aefc8..22a084c65fe8ccc096a7b8b3ad42cce998d55798 100644 (file)
@@ -378,7 +378,7 @@ handle_media_interface_descriptor_load(struct gen_batch_decode_ctx *ctx,
       }
 
       ctx_disassemble_program(ctx, ksp, "compute shader");
-      printf("\n");
+      fprintf(ctx->fp, "\n");
 
       dump_samplers(ctx, sampler_offset, sampler_count);
       dump_binding_table(ctx, binding_table_offset, binding_entry_count);
@@ -540,7 +540,7 @@ decode_single_ksp(struct gen_batch_decode_ctx *ctx, const uint32_t *p)
 
    if (is_enabled) {
       ctx_disassemble_program(ctx, ksp, type);
-      printf("\n");
+      fprintf(ctx->fp, "\n");
    }
 }