summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2010-06-08 16:20:25 -0400
committerZack Rusin <[email protected]>2010-06-08 16:20:25 -0400
commit551467d4ef28786597cc215e9b7159e70a8e742c (patch)
treee923dcb0e78973ff90e9a75d4144e4a2e34dbb77
parent38b13459be46bb6d243365d93d4e44ccfa370d69 (diff)
softpipe: make sure we don't fallback to assert on so stats query
spotted by Vinson
-rw-r--r--src/gallium/drivers/softpipe/sp_query.c2
1 files changed, 2 insertions, 0 deletions
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;