r600/sfn: Initialize VertexStageExportForGS m_num_clip_dist member variable.
authorVinson Lee <vlee@freedesktop.org>
Sat, 23 May 2020 00:40:14 +0000 (17:40 -0700)
committerMarge Bot <eric+marge@anholt.net>
Sat, 23 May 2020 20:47:07 +0000 (20:47 +0000)
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@freedesktop.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5180>

src/gallium/drivers/r600/sfn/sfn_vertexstageexport.cpp

index bcaa5f405f675d89a79ee9bf395870a7327c9986..b7809a060f677ccd26d320d47a02d84b6dbceb64 100644 (file)
@@ -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)
 {