etnaviv: allow shader machine code dumps in release builds
There is no reason to hide the shader machine code on release builds when ETNA_MESA_DEBUG=dump_shaders is specified. This debug option will dump lots of NIR already, so the machine code is in good company. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30604>
This commit is contained in:
@@ -408,10 +408,8 @@ create_variant(struct etna_shader *shader,
|
||||
|
||||
etna_disk_cache_store(shader->compiler, v);
|
||||
|
||||
#if MESA_DEBUG
|
||||
if (DBG_ENABLED(ETNA_DBG_DUMP_SHADERS))
|
||||
etna_dump_shader(v);
|
||||
#endif
|
||||
|
||||
return v;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user