[Mesa-dev] [PATCH] swr: Add missing break in query switch statement.

BruceCherniak bruce.cherniak at intel.com
Mon May 9 14:00:04 UTC 2016


Missed a switch break in query stat collection when refactoring queries.
---
 src/gallium/drivers/swr/swr_query.cpp |    1 +
 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 5c59965..7867db3 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];
-- 
1.7.1



More information about the mesa-dev mailing list