llvmpipe: added simple perf/statistics counting facility
authorBrian Paul <brianp@vmware.com>
Thu, 21 Jan 2010 21:59:01 +0000 (14:59 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 21 Jan 2010 22:39:57 +0000 (15:39 -0700)
commitcd9d9e2436a0815f6ed3a61d2cdf8fad53278506
tree4361bb4916bf5e3148031fc6afe7bebf7fe3fc44
parent63f249bf909cab60635c2df9122db86eaab6c421
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.
src/gallium/drivers/llvmpipe/Makefile
src/gallium/drivers/llvmpipe/SConscript
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_debug.h
src/gallium/drivers/llvmpipe/lp_perf.c [new file with mode: 0644]
src/gallium/drivers/llvmpipe/lp_perf.h [new file with mode: 0644]
src/gallium/drivers/llvmpipe/lp_rast_tri.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup.h
src/gallium/drivers/llvmpipe/lp_setup_tri.c