pan/bi: Initialize struct fma_op_info member extended.
authorVinson Lee <vlee@freedesktop.org>
Wed, 27 May 2020 00:26:47 +0000 (17:26 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 27 May 2020 22:41:21 +0000 (15:41 -0700)
Fix warning reported by Coverity Scan.

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

Fixes: 8c79c710d4e1 ("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>

src/panfrost/bifrost/disassemble.c

index e5f23eb0a6f0fcc1fbb2633f63871d82447516b6..b9ca762c90b0e76e8aad3a3cdfde594cbafc7b65 100644 (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;