r600/sfn: Use correct setter method.

Fix warning reported by Coverity Scan.

Useless call (USELESS_CALL)
side_effect_free: Calling v->pin_to_channel() is only useful for its
return value, which is ignored.

Fixes: 5d10e3ec60 ("r600/nir: Pin interpolation results to channel")
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/5197>
This commit is contained in:
Vinson Lee 2020-05-24 17:18:04 -07:00 committed by Marge Bot
parent ed1fd7bcc6
commit 1241f8cb4c
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ void GPRVector::set_reg_i(int i, PValue reg)
void GPRVector::pin_to_channel(int i)
{
auto& v = static_cast<GPRValue&>(*m_elms[i]);
v.pin_to_channel();
v.set_pin_to_channel();
}
void GPRVector::do_print(std::ostream& os) const