diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-12-07 23:34:21 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-12-08 04:39:50 +0100 |
commit | 2592a8f506568784c5e97bfd7ba306348d6007ed (patch) | |
tree | cd0f1019dd14860cc0ab6ef747bafd17ee5e9fe8 /src/mesa/drivers/dri/r300/compiler/radeon_compiler.h | |
parent | 431b4c0c84424bb80820c3b189aed901fdb605b2 (diff) |
r300/compiler: add a function to query program stats (alu, tex, temps..)
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_compiler.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_compiler.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h index 31fd469a04..2aa7978010 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h +++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h @@ -140,6 +140,18 @@ struct radeon_compiler_pass { void *user; /* Optional parameter which is passed to the run function. */ }; +struct rc_program_stats { + unsigned num_insts; + unsigned num_fc_insts; + unsigned num_tex_insts; + unsigned num_rgb_insts; + unsigned num_alpha_insts; + unsigned num_presub_ops; + unsigned num_temp_regs; +}; + +void rc_get_stats(struct radeon_compiler *c, struct rc_program_stats *s); + /* Executes a list of compiler passes given in the parameter 'list'. */ void rc_run_compiler(struct radeon_compiler *c, struct radeon_compiler_pass *list, const char *shader_name); |