summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-01 16:54:46 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-01 16:54:46 -0700
commitaa761b160520479efcf09d12ae4a161fc2f872f7 (patch)
tree3ee56e7fcc893df18261b4e3dc4f37e5df78670f /src/mesa
parent44d32693562e2fb83572bd10e4d489a7cb6f74f3 (diff)
Cell: comment about emit_quad() mask
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/cell/spu/spu_tri.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_tri.c b/src/mesa/pipe/cell/spu/spu_tri.c
index f0758c42e7..83bb247b22 100644
--- a/src/mesa/pipe/cell/spu/spu_tri.c
+++ b/src/mesa/pipe/cell/spu/spu_tri.c
@@ -277,6 +277,9 @@ do_depth_test(int x, int y, mask_t quadmask)
/**
* Emit a quad (pass to next stage). No clipping is done.
+ * Note: about 1/5 to 1/7 of the time, mask is zero and this function
+ * should be skipped. But adding the test for that slows things down
+ * overall.
*/
static INLINE void
emit_quad( int x, int y, mask_t mask )