diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-07-12 19:21:41 -0700 |
---|---|---|
committer | Vadim Girlin <vadimgirlin@gmail.com> | 2013-07-13 06:57:26 +0400 |
commit | b0c3c955aece11f506a10c9134f64960010d88f6 (patch) | |
tree | f818f7d21b69505cf3757970f8bc55ddb96fc5e5 /src/gallium | |
parent | be8d787873609e2efd847325e033d884f64f03ef (diff) |
r600g/sb: Initialize ra_constraint::cost.
Fixes "Uninitialized scalar field" reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | 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 ca9d29eb808..040dbf46667 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; |