Mesa (lp-binning): llvmpipe: improve empty-bin test
Keith Whitwell
keithw at kemper.freedesktop.org
Wed Jan 13 16:23:53 UTC 2010
Module: Mesa
Branch: lp-binning
Commit: f4b29e6ad38939318ce233ad28c70a608e7db0bd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4b29e6ad38939318ce233ad28c70a608e7db0bd
Author: Keith Whitwell <keithw at vmware.com>
Date: Wed Jan 13 15:49:24 2010 +0000
llvmpipe: improve empty-bin test
We emit at most two clear packets (color and z respectively).
---
src/gallium/drivers/llvmpipe/lp_rast.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 4c13d4d..9606418 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -584,7 +584,7 @@ is_empty_bin( struct lp_rasterizer *rast,
int i;
if (head->next != NULL ||
- head->count > PIPE_MAX_COLOR_BUFS + 1)
+ head->count > 2)
return FALSE;
for (i = 0; i < head->count; i++)
More information about the mesa-commit
mailing list