i965: Initialize brw_blorp_const_color_program member variables. 08/7308/1
authorVinson Lee <vlee@freedesktop.org>
Fri, 28 Jun 2013 05:40:20 +0000 (22:40 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 1 Jul 2013 17:16:16 +0000 (10:16 -0700)
Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp

index f925ab3..bf11135 100644 (file)
@@ -121,7 +121,11 @@ brw_blorp_const_color_program::brw_blorp_const_color_program(
       const brw_blorp_const_color_prog_key *key)
    : mem_ctx(ralloc_context(NULL)),
      brw(brw),
-     key(key)
+     key(key),
+     R0(),
+     R1(),
+     clear_rgba(),
+     base_mrf(0)
 {
    brw_init_compile(brw, &func, mem_ctx);
 }