projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e2a23
)
softpipe: fix numFragsEmitted debug code
author
Brian Paul
<brianp@vmware.com>
Tue, 26 Jun 2012 20:47:19 +0000
(14:47 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 27 Jun 2012 13:50:57 +0000
(07:50 -0600)
src/gallium/drivers/softpipe/sp_setup.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_setup.c
b/src/gallium/drivers/softpipe/sp_setup.c
index 6b15c876881180f6366564f5fe1994384ad73b7b..8cb4fc16133f240761b7aa9de1198e51ac21ed5d 100644
(file)
--- 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;