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:
@@ -461,7 +461,9 @@ etna_shader_variant(struct etna_shader *shader,
|
|||||||
static inline bool
|
static inline bool
|
||||||
initial_variants_synchronous(struct etna_context *ctx)
|
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
|
static void
|
||||||
|
Reference in New Issue
Block a user