From: Keith Whitwell Date: Wed, 13 Jan 2010 15:49:24 +0000 (+0000) Subject: llvmpipe: improve empty-bin test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4b29e6ad38939318ce233ad28c70a608e7db0bd;p=mesa.git llvmpipe: improve empty-bin test We emit at most two clear packets (color and z respectively). --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 4c13d4d80b5..9606418a375 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++)