[Mesa-dev] [PATCH 12/21] swr/rast: Fix init in EventHandlerWorkerStats
George Kyriazis
george.kyriazis at intel.com
Wed Apr 25 19:21:51 UTC 2018
Make sure we initialize variables.
---
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 871db79..ff7bdc3 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.7.4
More information about the mesa-dev
mailing list