diff options
author | Marek Olšák <[email protected]> | 2019-11-08 19:32:25 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-11-11 19:45:07 -0500 |
commit | 98e27e5e28947ceda95611dc98834f512376296c (patch) | |
tree | b51465b9a844f4d2dd4bb6a2f6f93e7ddbe02101 /src/mesa/state_tracker | |
parent | c3351bb44b72dcb6729700a5349f1c61e62fe6f9 (diff) |
st/mesa: remove \n being only printed in debug builds after printed TGSI
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index ae3b31bd9a9..c37799a2ff4 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -791,10 +791,8 @@ st_create_vp_variant(struct st_context *st, state.tokens = tokens; } - if (ST_DEBUG & DEBUG_PRINT_IR) { + if (ST_DEBUG & DEBUG_PRINT_IR) tgsi_dump(state.tokens, 0); - debug_printf("\n"); - } vpv->driver_shader = pipe->create_vs_state(pipe, &state); /* Save this for selection/feedback/rasterpos. */ @@ -1489,10 +1487,8 @@ st_create_fp_variant(struct st_context *st, state.tokens = tokens; } - if (ST_DEBUG & DEBUG_PRINT_IR) { + if (ST_DEBUG & DEBUG_PRINT_IR) tgsi_dump(state.tokens, 0); - debug_printf("\n"); - } /* fill in variant */ variant->driver_shader = pipe->create_fs_state(pipe, &state); @@ -1729,15 +1725,11 @@ st_translate_common_program(struct st_context *st, st_store_ir_in_disk_cache(st, prog, false); - if ((ST_DEBUG & DEBUG_PRINT_IR) && (ST_DEBUG & DEBUG_MESA)) { + if (ST_DEBUG & DEBUG_PRINT_IR && ST_DEBUG & DEBUG_MESA) _mesa_print_program(prog); - debug_printf("\n"); - } - if (ST_DEBUG & DEBUG_PRINT_IR) { + if (ST_DEBUG & DEBUG_PRINT_IR) tgsi_dump(stcp->state.tokens, 0); - debug_printf("\n"); - } free_glsl_to_tgsi_visitor(stcp->glsl_to_tgsi); stcp->glsl_to_tgsi = NULL; |