diff options
author | George Kyriazis <george.kyriazis@intel.com> | 2018-04-19 17:59:08 -0500 |
---|---|---|
committer | George Kyriazis <george.kyriazis@intel.com> | 2018-04-27 14:36:41 -0500 |
commit | b97bb0ea6ddbc0fdaa892ff3ca008223de0e20d8 (patch) | |
tree | d64c9b4cecb5ce1cb7b2c24fbe0bff60250af57f | |
parent | 9a72d4c03e202cbf233a99363207f8fb05955091 (diff) |
swr/rast: Fix init in EventHandlerWorkerStats
Make sure we initialize variables.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |