Mesa (master): i965: Initialize schedule_node::delay.

Vinson Lee vlee at kemper.freedesktop.org
Fri Nov 15 06:36:41 UTC 2013


Module: Mesa
Branch: master
Commit: 78fc159d68becdf4c04d35e3d21917ae45b839ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=78fc159d68becdf4c04d35e3d21917ae45b839ba

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Thu Nov 14 22:33:56 2013 -0800

i965: Initialize schedule_node::delay.

Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>

---

 .../drivers/dri/i965/brw_schedule_instructions.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
index befea0a..39a5266 100644
--- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
@@ -608,6 +608,7 @@ schedule_node::schedule_node(backend_instruction *inst,
    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.




More information about the mesa-commit mailing list