mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
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 commitdf2c68ee4f)
This commit is contained in:
parent
9aebf03336
commit
19d0759f19
2 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue