radeonsi: count compilations in si_compile_llvm
This changes the count slightly (because of si_generate_gs_copy_shader), but this is only relevant for the driver-specific num-compilations query. It sets the stage for the next commit. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
4711170239
commit
7d1fc2cf51
|
@ -3885,6 +3885,8 @@ int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader,
|
||||||
shader->selector ? shader->selector->tokens : NULL);
|
shader->selector ? shader->selector->tokens : NULL);
|
||||||
bool dump_ir = dump_asm && !(sscreen->b.debug_flags & DBG_NO_IR);
|
bool dump_ir = dump_asm && !(sscreen->b.debug_flags & DBG_NO_IR);
|
||||||
|
|
||||||
|
p_atomic_inc(&sscreen->b.num_compilations);
|
||||||
|
|
||||||
r = radeon_llvm_compile(mod, &shader->binary,
|
r = radeon_llvm_compile(mod, &shader->binary,
|
||||||
r600_get_llvm_processor_name(sscreen->b.family), dump_ir, dump_asm, tm);
|
r600_get_llvm_processor_name(sscreen->b.family), dump_ir, dump_asm, tm);
|
||||||
if (r)
|
if (r)
|
||||||
|
|
|
@ -634,7 +634,6 @@ static int si_shader_select(struct pipe_context *ctx,
|
||||||
sel->last_variant = shader;
|
sel->last_variant = shader;
|
||||||
}
|
}
|
||||||
state->current = shader;
|
state->current = shader;
|
||||||
p_atomic_inc(&sctx->screen->b.num_compilations);
|
|
||||||
pipe_mutex_unlock(sel->mutex);
|
pipe_mutex_unlock(sel->mutex);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue