llvmpipe: improve empty-bin test
authorKeith Whitwell <keithw@vmware.com>
Wed, 13 Jan 2010 15:49:24 +0000 (15:49 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 13 Jan 2010 15:49:24 +0000 (15:49 +0000)
We emit at most two clear packets (color and z respectively).

src/gallium/drivers/llvmpipe/lp_rast.c

index 4c13d4d80b5d823cde028953a588b1f5ee6977d7..9606418a37539f07a48507b57b145c2a82efbd09 100644 (file)
@@ -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++)