projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8d787
)
r600g/sb: Initialize ra_constraint::cost.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 13 Jul 2013 02:21:41 +0000
(19:21 -0700)
committer
Vadim 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/sb/sb_shader.h
b/src/gallium/drivers/r600/sb/sb_shader.h
index ca9d29eb80894b9c2e3d494145cbacbf35d00593..040dbf46667ed6eed31d95612ef044fb31244737 100644
(file)
--- 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;