[Mesa-dev] [PATCH] i965: Initialize brw_blorp_const_color_program member variables.
Vinson Lee
vlee at freedesktop.org
Thu Jun 27 22:40:20 PDT 2013
Fixes "Uninitialized scalar field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index f925ab3..bf11135 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -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);
}
--
1.8.3.1
More information about the mesa-dev
mailing list