From: Keith Whitwell Date: Fri, 9 Oct 2009 14:29:10 +0000 (+0100) Subject: llvmpipe: set block count/used values back to zero on reset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f406ffaea62005157f56ea17709291326c4dca8a;p=mesa.git llvmpipe: set block count/used values back to zero on reset --- diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 793b71e0953..03c54798dca 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -115,6 +115,7 @@ static void reset_context( struct setup_context *setup ) } list->head = list->tail; + list->head->count = 0; } } @@ -130,6 +131,7 @@ static void reset_context( struct setup_context *setup ) } list->head = list->tail; + list->head->used = 0; } /* Reset some state: