swr: Add missing break in query switch statement.
authorBruce Cherniak <bruce.cherniak@intel.com>
Mon, 9 May 2016 14:00:04 +0000 (09:00 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 9 May 2016 16:21:47 +0000 (11:21 -0500)
Missed a switch break in query stat collection when refactoring queries.

Reviewed-by: George Kyriazis <george.kyriazis@intel.com>
src/gallium/drivers/swr/swr_query.cpp

index 5c599654ba90ac99bd89777bd5f2878cfefbddc3..7867db3fc12a7cc07122f57f1a2cf68558344a7b 100644 (file)
@@ -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];