diff options
author | Vinson Lee <[email protected]> | 2020-05-24 17:18:04 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-25 20:34:36 +0000 |
commit | 1241f8cb4c9c6cc65106a085be81963f3505a7d5 (patch) | |
tree | 5c47872de4d0d92767db253d3bd88bd5a45e270d /src/gallium/drivers/r600 | |
parent | ed1fd7bcc6f76b70ab63a6dbb1f0c9e073db84df (diff) |
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: 5d10e3ec6066 ("r600/nir: Pin interpolation results to channel")
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5197>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp b/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp index 35d90a87b22..bc4a0a59e65 100644 --- a/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp @@ -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 |