r600/sfn: Initialize GPRValue member m_pin_to_channel.

Fix defects reported by Coverity Scan.

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

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/6830>
This commit is contained in:
Vinson Lee 2020-09-22 17:41:35 -07:00
parent 974981c4e6
commit 4bd0df0e4a
1 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,8 @@ GPRValue::GPRValue(uint32_t sel, uint32_t chan, int base_offset):
Value(Value::gpr, chan),
m_sel(sel),
m_base_offset(base_offset),
m_input(false)
m_input(false),
m_pin_to_channel(false)
{
}
@ -46,7 +47,8 @@ GPRValue::GPRValue(uint32_t sel, uint32_t chan):
Value(Value::gpr, chan),
m_sel(sel),
m_base_offset(0),
m_input(false)
m_input(false),
m_pin_to_channel(false)
{
}