r600g/sb: Initialize ra_constraint::cost.
authorVinson Lee <vlee@freedesktop.org>
Sat, 13 Jul 2013 02:21:41 +0000 (19:21 -0700)
committerVadim Girlin <vadimgirlin@gmail.com>
Sat, 13 Jul 2013 02:57:26 +0000 (06:57 +0400)
Fixes "Uninitialized scalar field" reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/drivers/r600/sb/sb_shader.h

index ca9d29eb80894b9c2e3d494145cbacbf35d00593..040dbf46667ed6eed31d95612ef044fb31244737 100644 (file)
@@ -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;