Module: Mesa
Branch: master
Commit: 1176a3aac65dfe935809182bfac883708def8046
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1176a3aac65dfe935809182bfac883708def8046

Author: Vinson Lee <[email protected]>
Date:   Sat Jul 27 00:04:41 2013 -0700

i965: Initialize brw_blorp_const_color_program::prog_data.

Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Paul Berry <[email protected]>

---

 src/mesa/drivers/dri/i965/brw_blorp_clear.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp 
b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index 4ff776f..18a29fb 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -127,6 +127,8 @@ 
brw_blorp_const_color_program::brw_blorp_const_color_program(
      clear_rgba(),
      base_mrf(0)
 {
+   prog_data.first_curbe_grf = 0;
+   prog_data.persample_msaa_dispatch = false;
    brw_init_compile(brw, &func, mem_ctx);
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to