Coverity caught the use of the uninitialised variable `type`. However, it was `info->type`, which is initialised, which was meant to be used.
CID: 1406000 Reported-by: Ilia Mirkin <imir...@alum.mit.edu> Fixes: b490ca9a387d ("nv50/ir: Fail if encountering unknown shader type") Signed-off-by: Pierre Moreau <pierre.mor...@free.fr> --- src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp index a000bcbd32..21641a4746 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp @@ -1214,7 +1214,7 @@ nv50_ir_generate_code(struct nv50_ir_prog_info *info) PROG_TYPE_CASE(FRAGMENT, FRAGMENT); PROG_TYPE_CASE(COMPUTE, COMPUTE); default: - INFO_DBG(info->dbgFlags, VERBOSE, "unsupported program type %u\n", type); + INFO_DBG(info->dbgFlags, VERBOSE, "unsupported program type %u\n", info->type); return -1; } INFO_DBG(info->dbgFlags, VERBOSE, "translating program of type %u\n", type); -- 2.13.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev