etnaviv: move printing of final shader out of etna_link_shaders(..)
Printing the final shaders in etna_link_shaders(..) can be quite noisy and does not work when using shader-db. Lets make it possible to stare at the generaded shader code when using shader-db by moving the etna_dump_shader(..) call into create_variant(..). Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23396>
This commit is contained in:

committed by
Marge Bot

parent
f40ab555f5
commit
7bbef4002c
@@ -126,13 +126,6 @@ etna_link_shaders(struct etna_context *ctx, struct compiled_shader_state *cs,
|
||||
assert(vs->stage == MESA_SHADER_VERTEX);
|
||||
assert(fs->stage == MESA_SHADER_FRAGMENT);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (DBG_ENABLED(ETNA_DBG_DUMP_SHADERS)) {
|
||||
etna_dump_shader(vs);
|
||||
etna_dump_shader(fs);
|
||||
}
|
||||
#endif
|
||||
|
||||
failed = etna_link_shader(&link, vs, fs);
|
||||
|
||||
if (failed) {
|
||||
@@ -425,6 +418,11 @@ create_variant(struct etna_shader *shader,
|
||||
|
||||
etna_disk_cache_store(shader->compiler, v);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (DBG_ENABLED(ETNA_DBG_DUMP_SHADERS))
|
||||
etna_dump_shader(v);
|
||||
#endif
|
||||
|
||||
return v;
|
||||
|
||||
fail:
|
||||
|
Reference in New Issue
Block a user