summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2020-09-17 17:05:56 -0700
committerMarge Bot <eric+marge@anholt.net>2020-10-03 01:15:14 +0000
commit23ff2a0e634f4be94fec24c84dc3339a434f69ba (patch)
treeb2403bffeff1064ce9b89e74729450ef0dfe9dbf /src/gallium/drivers/nouveau
parent7e862670efb8c3ab7eb50173d302379f42cd63fe (diff)
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>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index f799a4d5659..eb4ef7e4f3d 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -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);