Mesa (master): pan/bi: Initialize struct fma_op_info member extended.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 27 23:19:19 UTC 2020


Module: Mesa
Branch: master
Commit: df2c68ee4fd470efdc4f0121a2fe4aa5c64771e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df2c68ee4fd470efdc4f0121a2fe4aa5c64771e0

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Tue May 26 17:26:47 2020 -0700

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: 8c79c710d4e1 ("pan/bi: Identify extended FMA opcodes")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5224>

---

 src/panfrost/bifrost/disassemble.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c
index e5f23eb0a6f..b9ca762c90b 100644
--- a/src/panfrost/bifrost/disassemble.c
+++ b/src/panfrost/bifrost/disassemble.c
@@ -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;



More information about the mesa-commit mailing list