nv50/ir: Initialize Source members.

Fix defects reported by Coverity Scan.

uninit_member: Non-static class member insns is not initialized in this
constructor nor in any functions that it calls.
uninit_member: Non-static class member clipVertexOutput is not
initialized in this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6769>
This commit is contained in:
Vinson Lee
2020-09-17 17:05:56 -07:00
committed by Marge Bot
parent 7e862670ef
commit 23ff2a0e63
@@ -1056,7 +1056,7 @@ private:
Source::Source(struct nv50_ir_prog_info *info, struct nv50_ir_prog_info_out *info_out,
nv50_ir::Program *prog)
: info(info), info_out(info_out), prog(prog)
: insns(NULL), info(info), info_out(info_out), clipVertexOutput(-1), prog(prog)
{
tokens = (const struct tgsi_token *)info->bin.source;
@@ -1088,8 +1088,6 @@ bool Source::scanSource()
if (!insns)
return false;
clipVertexOutput = -1;
textureViews.resize(scan.file_max[TGSI_FILE_SAMPLER_VIEW] + 1);
//resources.resize(scan.file_max[TGSI_FILE_RESOURCE] + 1);
tempArrayId.resize(scan.file_max[TGSI_FILE_TEMPORARY] + 1);