projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ceef7
)
softpipe: document MAX_QUADS
author
Brian Paul
<brianp@vmware.com>
Sun, 18 Apr 2010 14:51:16 +0000
(08:51 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sun, 18 Apr 2010 16:02:11 +0000
(10:02 -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 e136cb7cf739cc4c563fc97031e6fae3dbd60116..42c254c7a887d2b063f87f0d4059de6c8ad2e8eb 100644
(file)
--- 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];