pan/bi: Initialize struct fma_op_info member extended.

Fix warning reported by Coverity Scan.

Uninitialized scalar variable (UNINIT)
uninit_use: Using uninitialized value info. Field info.extended is
uninitialized.

Fixes: 8c79c710d4 ("pan/bi: Identify extended FMA opcodes")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5224>
(cherry picked from commit df2c68ee4f)
This commit is contained in:
Vinson Lee 2020-05-26 17:26:47 -07:00 committed by Eric Engestrom
parent 9aebf03336
commit 19d0759f19
2 changed files with 2 additions and 1 deletions

View file

@ -4234,7 +4234,7 @@
"description": "pan/bi: Initialize struct fma_op_info member extended.",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "8c79c710d4e1f3e424d5abf1f9abccdfc9a59caa"
},

View file

@ -613,6 +613,7 @@ static struct fma_op_info find_fma_op_info(unsigned op, bool extended)
struct fma_op_info info;
snprintf(info.name, sizeof(info.name), "op%04x", op);
info.extended = extended;
info.op = op;
info.src_type = FMA_THREE_SRC;
return info;