swr/rast: Fix init in EventHandlerWorkerStats
authorGeorge Kyriazis <george.kyriazis@intel.com>
Thu, 19 Apr 2018 22:59:08 +0000 (17:59 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 27 Apr 2018 19:36:41 +0000 (14:36 -0500)
Make sure we initialize variables.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp

index 871db793de9b342e81e2b5fa00b02d656799ce13..ff7bdc3ef73efb2fd2353a1a2d5823c54e0a7272 100644 (file)
@@ -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)
         {