summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-18 08:51:16 -0600
committerBrian Paul <[email protected]>2010-04-18 10:02:11 -0600
commitb806c3056f17685c8e6214ce946cd282c656107a (patch)
treed8b77d81a796f0d9f51cc6719b0a0fe7d15252cd /src/gallium
parent24ceef7a6969ccb2243e7bb32f86d6429d9689b9 (diff)
softpipe: document MAX_QUADS
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index e136cb7cf73..42c254c7a88 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -59,6 +59,11 @@ struct edge {
};
+/**
+ * Max number of quads (2x2 pixel blocks) to process per batch.
+ * This can't be arbitrarily increased since we depend on some 32-bit
+ * bitmasks (two bits per quad).
+ */
#define MAX_QUADS 16
@@ -204,7 +209,7 @@ static INLINE int block_x( int x )
*/
static void flush_spans( struct setup_context *setup )
{
- const int step = 16;
+ const int step = MAX_QUADS;
const int xleft0 = setup->span.left[0];
const int xleft1 = setup->span.left[1];
const int xright0 = setup->span.right[0];