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

Author: Vinson Lee <v...@freedesktop.org>
Date:   Fri Jul 12 19:21:41 2013 -0700

r600g/sb: Initialize ra_constraint::cost.

Fixes "Uninitialized scalar field" reported by Coverity.

Signed-off-by: Vinson Lee <v...@freedesktop.org>

---

 src/gallium/drivers/r600/sb/sb_shader.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/sb/sb_shader.h 
b/src/gallium/drivers/r600/sb/sb_shader.h
index ca9d29e..040dbf4 100644
--- a/src/gallium/drivers/r600/sb/sb_shader.h
+++ b/src/gallium/drivers/r600/sb/sb_shader.h
@@ -113,7 +113,7 @@ typedef std::vector<ra_chunk*> chunk_vector;
 
 class ra_constraint {
 public:
-       ra_constraint(constraint_kind kind) : kind(kind) {}
+       ra_constraint(constraint_kind kind) : kind(kind), cost(0) {}
 
        constraint_kind kind;
        vvec values;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to