aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre Moreau <[email protected]>2017-05-12 11:01:32 +0200
committerSamuel Pitoiset <[email protected]>2017-05-13 16:26:09 +0200
commit840f6beb81a5b51d782d54e9064af0ba193b221a (patch)
tree909a50dde581228c991464f41ec25e932d3fd2ce /src
parent812ff333bf266e848ad0473d2ca1deb83c09c4d3 (diff)
nv50/ir: Report wrong prog types using proper var
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 <[email protected]> Fixes: b490ca9a387d ("nv50/ir: Fail if encountering unknown shader type") Signed-off-by: Pierre Moreau <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
index a000bcbd32f..21641a4746c 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);