etnaviv: output the same shader-db format as freedreno, v3d and intel
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 5 Oct 2019 12:53:46 +0000 (14:53 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 11 Oct 2019 10:35:15 +0000 (12:35 +0200)
This lets us reuse their report.py.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/etnaviv/etnaviv_shader.c

index 98d4c2874a7fada2bf4faeecd2f8355edb70ea7d..4664ba96b216cef8f9c0c65b09731522d1d4be68 100644 (file)
@@ -306,15 +306,12 @@ dump_shader_info(struct etna_shader_variant *v, struct pipe_debug_callback *debu
    if (!unlikely(etna_mesa_debug & ETNA_DBG_SHADERDB))
       return;
 
-   pipe_debug_message(debug, SHADER_INFO, "\n"
-         "SHADER-DB: %s prog %d/%d: %u instructions %u temps\n"
-         "SHADER-DB: %s prog %d/%d: %u immediates %u loops\n",
+   pipe_debug_message(debug, SHADER_INFO,
+         "%s shader: %u instructions, %u temps, "
+         "%u immediates, %u loops",
          etna_shader_stage(v),
-         v->shader->id, v->id,
          v->code_size,
          v->num_temps,
-         etna_shader_stage(v),
-         v->shader->id, v->id,
          v->uniforms.imm_count,
          v->num_loops);
 }