Mesa (master): softpipe: make sure we don' t fallback to assert on so stats query
Zack Rusin
zack at kemper.freedesktop.org
Tue Jun 8 20:21:26 UTC 2010
Module: Mesa
Branch: master
Commit: 551467d4ef28786597cc215e9b7159e70a8e742c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=551467d4ef28786597cc215e9b7159e70a8e742c
Author: Zack Rusin <zack at kde.org>
Date: Tue Jun 8 16:20:25 2010 -0400
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 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 43ff5c5..245f1b5 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;
More information about the mesa-commit
mailing list