llvmpipe: added simple perf/statistics counting facility

Currently counting number of tris, how many tiles of each size are
fully covered, partially covered or empty, etc.

Set LP_DEBUG=counters to enable.  Results are printed upon context
destruction.
This commit is contained in:
Brian Paul
2010-01-21 14:59:01 -07:00
parent 63f249bf90
commit cd9d9e2436
11 changed files with 189 additions and 6 deletions

View File

@@ -499,7 +499,7 @@ lp_setup_set_sampler_textures( struct setup_context *setup,
* Note: we have to check all scenes including any scenes currently
* being rendered and the current scene being built.
*/
boolean
unsigned
lp_setup_is_texture_referenced( const struct setup_context *setup,
const struct pipe_texture *texture )
{