diff options
author | Marek Olšák <[email protected]> | 2019-11-08 19:35:02 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-11-11 19:45:08 -0500 |
commit | 265abc54f828750ffde075d6faf71541ca58ad42 (patch) | |
tree | 0bafa8a640ce9d4f7fd72ee144fe496e9f5d1eae /src/mesa | |
parent | 98e27e5e28947ceda95611dc98834f512376296c (diff) |
st/mesa: print TCS/TES/GS/CS TGSI in the right place & keep disk cache enabled
The old place only printed on a disk cache miss, which is why the disk
cache was disabled.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 3 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 0a473f2d327..817a75da780 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -960,8 +960,7 @@ st_create_context(gl_api api, struct pipe_context *pipe, st_debug_init(); - if (pipe->screen->get_disk_shader_cache && - !(ST_DEBUG & DEBUG_PRINT_IR)) + if (pipe->screen->get_disk_shader_cache) ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen); /* XXX: need a capability bit in gallium to query if the pipe diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index c37799a2ff4..41508710783 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1728,9 +1728,6 @@ st_translate_common_program(struct st_context *st, if (ST_DEBUG & DEBUG_PRINT_IR && ST_DEBUG & DEBUG_MESA) _mesa_print_program(prog); - if (ST_DEBUG & DEBUG_PRINT_IR) - tgsi_dump(stcp->state.tokens, 0); - free_glsl_to_tgsi_visitor(stcp->glsl_to_tgsi); stcp->glsl_to_tgsi = NULL; return true; @@ -1795,7 +1792,10 @@ st_get_common_variant(struct st_context *st, prog->state.tokens = tokens; } - state = prog->state; + state = prog->state; + + if (ST_DEBUG & DEBUG_PRINT_IR) + tgsi_dump(state.tokens, 0); } /* fill in new variant */ switch (prog->Base.info.stage) { |