Mesa (master): i965: Initialize brw_blorp_const_color_program::prog_data.
Vinson Lee
vlee at kemper.freedesktop.org
Wed Oct 9 05:11:10 UTC 2013
Module: Mesa
Branch: master
Commit: 1176a3aac65dfe935809182bfac883708def8046
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1176a3aac65dfe935809182bfac883708def8046
Author: Vinson Lee <vlee at freedesktop.org>
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 <vlee at freedesktop.org>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
---
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);
}
More information about the mesa-commit
mailing list