mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
etnaviv: bring back shader-db traces
If shader-db run, create a standard variant immediately (as otherwise nothing will trigger the shader to be actually compiled). Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
7d2a806266
commit
20fa8f1989
1 changed files with 9 additions and 0 deletions
|
|
@ -330,6 +330,15 @@ etna_create_shader_state(struct pipe_context *pctx,
|
|||
shader->specs = &ctx->specs;
|
||||
shader->tokens = tgsi_dup_tokens(pss->tokens);
|
||||
|
||||
if (etna_mesa_debug & ETNA_DBG_SHADERDB) {
|
||||
/* if shader-db run, create a standard variant immediately
|
||||
* (as otherwise nothing will trigger the shader to be
|
||||
* actually compiled).
|
||||
*/
|
||||
struct etna_shader_key key = {};
|
||||
etna_shader_variant(shader, key, &ctx->debug);
|
||||
}
|
||||
|
||||
return shader;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue