llvmpipe: add a simple resource tracking/debug feature
authorBrian Paul <brianp@vmware.com>
Tue, 11 May 2010 17:50:43 +0000 (11:50 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 11 May 2010 17:52:06 +0000 (11:52 -0600)
commitfea189d6e4f0c09eb0d005c5fa06db43b56e2e37
tree2e8aaf3b477515edac3d5e24e32cfd74275e5b66
parentf70d900b805b90f6f53da9698cf8025f88b7e1e0
llvmpipe: add a simple resource tracking/debug feature

If debug build, keep a linked list of all allocated resources (textures).
The llvmipe_print_resources() function can be called from a debugger to
print a list of all resources, their sizes, total size, etc.
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h