summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-07-12 19:21:41 -0700
committerVadim Girlin <[email protected]>2013-07-13 06:57:26 +0400
commitb0c3c955aece11f506a10c9134f64960010d88f6 (patch)
treef818f7d21b69505cf3757970f8bc55ddb96fc5e5 /src/gallium
parentbe8d787873609e2efd847325e033d884f64f03ef (diff)
r600g/sb: Initialize ra_constraint::cost.
Fixes "Uninitialized scalar field" reported by Coverity. Signed-off-by: Vinson Lee <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/sb/sb_shader.h2
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;