mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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> (cherry picked from commit73c0f60d8c)
This commit is contained in:
parent
57f400b013
commit
f6412c24b3
2 changed files with 2 additions and 1 deletions
|
|
@ -1057,7 +1057,7 @@
|
|||
"description": "r600/sfn: Initialize VertexStageExportForGS m_num_clip_dist member variable.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "f7df2c57a207a386ba0d2130541ac9d0546670e1"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -382,6 +382,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)
|
||||
{
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue