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: f7df2c57a2 ("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>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user