i965: Initialize brw_blorp_const_color_program member variables.
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 f925ab32d1e904d1ba38c74b9a1cb8ac244f6dcd..bf11135189d8e2a4abc89b9f3ea4ba8fb8a5ac06 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);
 }