From 0062c5f09b4e0031425fdae8102c69cbef5cbff5 Mon Sep 17 00:00:00 2001 From: Bruce Cherniak Date: Mon, 9 May 2016 09:00:04 -0500 Subject: [PATCH] swr: Add missing break in query switch statement. Missed a switch break in query stat collection when refactoring queries. Reviewed-by: George Kyriazis --- src/gallium/drivers/swr/swr_query.cpp | 1 + 1 file changed, 1 insertion(+) 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]; -- 2.30.2