From: Zack Rusin Date: Tue, 8 Jun 2010 20:20:25 +0000 (-0400) Subject: softpipe: make sure we don't fallback to assert on so stats query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=551467d4ef28786597cc215e9b7159e70a8e742c;p=mesa.git softpipe: make sure we don't fallback to assert on so stats query spotted by Vinson --- diff --git a/src/gallium/drivers/softpipe/sp_query.c b/src/gallium/drivers/softpipe/sp_query.c index 43ff5c56afe..245f1b554c9 100644 --- a/src/gallium/drivers/softpipe/sp_query.c +++ b/src/gallium/drivers/softpipe/sp_query.c @@ -89,6 +89,7 @@ softpipe_begin_query(struct pipe_context *pipe, struct pipe_query *q) case PIPE_QUERY_SO_STATISTICS: sq->so.num_primitives_written = 0; sq->so.primitives_storage_needed = 0; + break; default: assert(0); break; @@ -117,6 +118,7 @@ softpipe_end_query(struct pipe_context *pipe, struct pipe_query *q) softpipe->so_stats.num_primitives_written; sq->so.primitives_storage_needed = softpipe->so_stats.primitives_storage_needed; + break; default: assert(0); break;