r600g/sb: Initialize shader::dce_flags.
authorVinson Lee <vlee@freedesktop.org>
Sat, 19 Oct 2013 02:15:37 +0000 (19:15 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sun, 20 Oct 2013 07:38:40 +0000 (00:38 -0700)
Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/sb/sb_shader.cpp

index 98e52b16e0e3beac7d5137739315cbf610faf5b6..38617a8533041e3477d658856760f18dc3baa5cb 100644 (file)
@@ -39,7 +39,8 @@ shader::shader(sb_context &sctx, shader_target t, unsigned id)
   coal(*this), bbs(),
   target(t), vt(ex), ex(*this), root(),
   compute_interferences(),
-  has_alu_predication(), uses_gradients(), safe_math(), ngpr(), nstack() {}
+  has_alu_predication(),
+  uses_gradients(), safe_math(), ngpr(), nstack(), dce_flags() {}
 
 bool shader::assign_slot(alu_node* n, alu_node *slots[5]) {