Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <[email protected]>
---
 src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp 
b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
index 5dcd0e8..2833e20 100644
--- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
@@ -69,6 +69,7 @@ public:
       this->parent_count = 0;
       this->unblocked_time = 0;
       this->cand_generation = 0;
+      this->delay = 0;
 
       /* We can't measure Gen6 timings directly but expect them to be much
        * closer to Gen7 than Gen4.
-- 
1.8.3.2

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to