From b97bb0ea6ddbc0fdaa892ff3ca008223de0e20d8 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Thu, 19 Apr 2018 17:59:08 -0500 Subject: [PATCH] swr/rast: Fix init in EventHandlerWorkerStats Make sure we initialize variables. Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp b/src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp index 871db793de9..ff7bdc3ef73 100644 --- a/src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp +++ b/src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp @@ -121,7 +121,10 @@ namespace ArchRast class EventHandlerWorkerStats : public EventHandlerFile { public: - EventHandlerWorkerStats(uint32_t id) : EventHandlerFile(id), mNeedFlush(false) {} + EventHandlerWorkerStats(uint32_t id) : EventHandlerFile(id), mNeedFlush(false) + { + memset(mShaderStats, 0, sizeof(mShaderStats)); + } virtual void Handle(const EarlyDepthStencilInfoSingleSample& event) { -- 2.30.2