diff options
author | Vinson Lee <vlee@freedesktop.org> | 2020-09-11 15:49:50 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-09-14 22:44:39 +0000 |
commit | c7719b8cfc4c17f4fd316d9f2ea0c314ef030478 (patch) | |
tree | 220fe9e9c10bd88b2b1b894acf62dacdab08e98d /src/gallium/drivers/nouveau | |
parent | e607477d7ca2550c0b7f53f3886b4b6fd055d779 (diff) |
nv50/ir: Initialize Converter members.
Fix defects reported by Coverity Scan.
Uninitialized pointer field (UNINIT_CTOR)
Non-static class member exit is not initialized in this
constructor nor in any functions that it calls
Non-static class member immInsertPos 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/6695>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index b0b5de74754..e2f83e44ed5 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -198,6 +198,8 @@ Converter::Converter(Program *prog, nir_shader *nir, nv50_ir_prog_info *info, nir(nir), curLoopDepth(0), curIfDepth(0), + exit(NULL), + immInsertPos(NULL), clipVertexOutput(-1) { zero = mkImm((uint32_t)0); |