Mesa (master): r600/sfn: Initialize VertexStageExportForGS m_num_clip_dist member variable.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 23 20:58:13 UTC 2020


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

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Fri May 22 17:40:14 2020 -0700

r600/sfn: Initialize VertexStageExportForGS m_num_clip_dist member variable.

Fix warning reported by Coverity Scan.

Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member m_num_clip_dist is not
initialized in this constructor nor in any functions that it calls.

Fixes: f7df2c57a207 ("r600/sfn: extract class to handle the VS export to different stages")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5180>

---

 src/gallium/drivers/r600/sfn/sfn_vertexstageexport.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/r600/sfn/sfn_vertexstageexport.cpp b/src/gallium/drivers/r600/sfn/sfn_vertexstageexport.cpp
index bcaa5f405f6..b7809a060f6 100644
--- a/src/gallium/drivers/r600/sfn/sfn_vertexstageexport.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_vertexstageexport.cpp
@@ -376,6 +376,7 @@ bool VertexStageExportForFS::emit_stream(int stream)
 VertexStageExportForGS::VertexStageExportForGS(VertexStage &proc,
                                                const r600_shader *gs_shader):
    VertexStageExportBase(proc),
+   m_num_clip_dist(0),
    m_gs_shader(gs_shader)
 {
 



More information about the mesa-commit mailing list