[Mesa-dev] [PATCH] r600g/sb: Initialize shader::dce_flags.
Vadim Girlin
vadimgirlin at gmail.com
Sat Oct 19 21:01:33 CEST 2013
On 10/19/2013 06:18 AM, Vinson Lee wrote:
> Fixes "Uninitialized scalar field" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Vadim Girlin <vadimgirlin at gmail.com>
> ---
> src/gallium/drivers/r600/sb/sb_shader.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/r600/sb/sb_shader.cpp b/src/gallium/drivers/r600/sb/sb_shader.cpp
> index 98e52b1..38617a8 100644
> --- a/src/gallium/drivers/r600/sb/sb_shader.cpp
> +++ b/src/gallium/drivers/r600/sb/sb_shader.cpp
> @@ -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]) {
>
>
More information about the mesa-dev
mailing list