summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-04-26 07:13:15 -0700
committerCorbin Simpson <[email protected]>2010-04-26 07:13:51 -0700
commitb02f1c86f5bf8b1169776975491c7df929e94e2c (patch)
tree00909efb2eed22fbf8c54a2e4288184f0ddd74aa /src/gallium/drivers/r300/r300_emit.c
parentbf98d6170851487a94d9c611035cc2f2e807f8b6 (diff)
r300g: Rudimentary stats, printed on exit.
Whoo!
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index a6716db8dea..2816c35fd30 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -1187,6 +1187,9 @@ void r300_emit_dirty_state(struct r300_context* r300)
foreach(atom, &r300->atom_list) {
if (atom->dirty) {
atom->emit(r300, atom->size, atom->state);
+ if (SCREEN_DBG_ON(r300->screen, DBG_STATS)) {
+ atom->counter++;
+ }
atom->dirty = FALSE;
}
}