i965: Initialize schedule_node::delay.
authorVinson Lee <vlee@freedesktop.org>
Fri, 15 Nov 2013 06:33:56 +0000 (22:33 -0800)
committerVinson Lee <vlee@freedesktop.org>
Fri, 15 Nov 2013 06:36:26 +0000 (22:36 -0800)
Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp

index befea0a787d4cc083b078566387ddd98c906f030..39a5266d1c2c3bb27669407b00e55a244a004e0c 100644 (file)
@@ -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.