summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2018-04-19 17:59:08 -0500
committerGeorge Kyriazis <[email protected]>2018-04-27 14:36:41 -0500
commitb97bb0ea6ddbc0fdaa892ff3ca008223de0e20d8 (patch)
treed64c9b4cecb5ce1cb7b2c24fbe0bff60250af57f /src/gallium/drivers/swr/rasterizer
parent9a72d4c03e202cbf233a99363207f8fb05955091 (diff)
swr/rast: Fix init in EventHandlerWorkerStats
Make sure we initialize variables. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r--src/gallium/drivers/swr/rasterizer/archrast/archrast.cpp5
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)
{