r600/sfn: Use correct setter method.
authorVinson Lee <vlee@freedesktop.org>
Mon, 25 May 2020 00:18:04 +0000 (17:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 25 May 2020 20:34:36 +0000 (20:34 +0000)
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: 5d10e3ec6066 ("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>

src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp

index 35d90a87b225b387ee722b7e7b2c2e6273819f6f..bc4a0a59e655b835a907baf352536cc0b2719e9e 100644 (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