summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/swr/swr_query.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_query.cpp b/src/gallium/drivers/swr/swr_query.cpp
index 5c599654ba9..7867db3fc12 100644
--- a/src/gallium/drivers/swr/swr_query.cpp
+++ b/src/gallium/drivers/swr/swr_query.cpp
@@ -152,6 +152,7 @@ swr_get_query_result(struct pipe_context *pipe,
break;
case PIPE_QUERY_PRIMITIVES_GENERATED:
result->u64 = end->core.IaPrimitives - start->core.IaPrimitives;
+ break;
case PIPE_QUERY_PRIMITIVES_EMITTED:
result->u64 = end->core.SoNumPrimsWritten[index]
- start->core.SoNumPrimsWritten[index];