From 551467d4ef28786597cc215e9b7159e70a8e742c Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Tue, 8 Jun 2010 16:20:25 -0400 Subject: [PATCH] softpipe: make sure we don't fallback to assert on so stats query spotted by Vinson --- src/gallium/drivers/softpipe/sp_query.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2