r600/sfn: Initialize FragmentShaderFromNir member m_pos_input.

Fix defect reported by Coverity Scan.

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

Fixes: 374bc76706 ("r600/sfn: Add the position input as varying")
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/9004>
This commit is contained in:
Vinson Lee 2021-02-11 20:07:00 -08:00
parent 0408279e8c
commit 628ce5472c
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ FragmentShaderFromNir::FragmentShaderFromNir(const nir_shader& nir,
m_front_face_loaded(false),
m_depth_exports(0),
m_apply_sample_mask(key.ps.apply_sample_id_mask),
m_dual_source_blend(key.ps.dual_source_blend)
m_dual_source_blend(key.ps.dual_source_blend),
m_pos_input(nullptr)
{
for (auto& i: m_interpolator) {
i.enabled = false;