gallium/ddebug: regularly log the total number of draw calls
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 8 Dec 2015 22:56:23 +0000 (17:56 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 12 Dec 2015 20:23:50 +0000 (15:23 -0500)
commitd640f179d314abef4d82bf3237197f1278415d36
tree7c57fbf8ff591edca5a76a10c73e762ec3f23105
parentb86d5ccae2b6280ad26d1060295fcc4963e90011
gallium/ddebug: regularly log the total number of draw calls

This helps in the use of GALLIUM_DDEBUG_SKIP: first run a target application
with skip set to a very large number and note how many draw calls happen
before the bug. Then re-run, skipping the corresponding number of calls.
Despite the additional run, this can still be much faster than not skipping
anything.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/ddebug/dd_draw.c