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>
This commit is contained in:
Vinson Lee 2020-05-26 17:26:47 -07:00
parent b3023055e0
commit df2c68ee4f
1 changed files with 1 additions and 0 deletions

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;