From: George Kyriazis Date: Thu, 19 Apr 2018 22:59:08 +0000 (-0500) Subject: swr/rast: Fix init in EventHandlerWorkerStats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b97bb0ea6ddbc0fdaa892ff3ca008223de0e20d8;p=mesa.git swr/rast: Fix init in EventHandlerWorkerStats Make sure we initialize variables. Reviewed-by: Bruce Cherniak --- 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) {