summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-06-26 14:47:19 -0600
committerBrian Paul <[email protected]>2012-06-27 07:50:57 -0600
commit098aa5f9abcda3fff1a40666cc8f150f046d8867 (patch)
tree34933c26b684e641f22f9e24b1c52be1c8280413 /src/gallium/drivers
parent81e2a238bcdaeb71d5a35b5d9e1c425cca8672bc (diff)
softpipe: fix numFragsEmitted debug code
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index 6b15c876881..8cb4fc16133 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -163,6 +163,10 @@ clip_emit_quad(struct setup_context *setup, struct quad_header *quad)
if (quad->inout.mask) {
struct softpipe_context *sp = setup->softpipe;
+#if DEBUG_FRAGS
+ setup->numFragsEmitted += util_bitcount(quad->inout.mask);
+#endif
+
sp->quad.first->run( sp->quad.first, &quad, 1 );
}
}
@@ -234,6 +238,9 @@ flush_spans(struct setup_context *setup)
setup->quad[q].inout.mask = quadmask;
setup->quad_ptrs[q] = &setup->quad[q];
q++;
+#if DEBUG_FRAGS
+ setup->numFragsEmitted += util_bitcount(quadmask);
+#endif
}
mask0 >>= 2;
mask1 >>= 2;