mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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 <imirkin@alum.mit.edu>
Fixes: b490ca9a38 ("nv50/ir: Fail if encountering unknown shader type")
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
812ff333bf
commit
840f6beb81
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue