etnaviv: singlethread shader variant compiles when dumping shaders

When more than one instance of the shader compiler is running at
once, the output of ETNA_MESA_DEBUG=dump_shaders is almost useless
as output from multiple instances will get interleaved, making it
very hard to parse.

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:
Lucas Stach
2024-08-10 00:34:10 +02:00
committed by Marge Bot
parent d29dfc180e
commit e6c2bf38b1

View File

@@ -461,7 +461,9 @@ etna_shader_variant(struct etna_shader *shader,
static inline bool
initial_variants_synchronous(struct etna_context *ctx)
{
return unlikely(ctx->base.debug.debug_message) || DBG_ENABLED(ETNA_DBG_SHADERDB);
return unlikely(ctx->base.debug.debug_message) ||
DBG_ENABLED(ETNA_DBG_SHADERDB) ||
DBG_ENABLED(ETNA_DBG_DUMP_SHADERS);
}
static void