From 7214fe3cc4cf5f08092e6eb8980eb1d56a84cdd3 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 27 Jun 2013 22:40:20 -0700 Subject: [PATCH] i965: Initialize brw_blorp_const_color_program member variables. Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Chad Versace --- 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 f925ab32d1e..bf11135189d 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); } -- 2.30.2