mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 13:20:10 +01:00
radv: Use count_tes_user_sgprs return value.
Fix defect reported by Coverity Scan.
Useless call (USELESS_CALL)
side_effect_free: Calling count_tes_user_sgprs(key) is only useful for
its return value, which is ignored.
Fixes: 8253ec3855 ("radv: add shader arguments for dynamic patch control points")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18659>
This commit is contained in:
parent
f4179f203d
commit
97d307406b
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ allocate_user_sgprs(enum amd_gfx_level gfx_level, const struct radv_shader_info
|
|||
user_sgpr_count += 1; /* tcs_offchip_layout */
|
||||
break;
|
||||
case MESA_SHADER_TESS_EVAL:
|
||||
count_tes_user_sgprs(key);
|
||||
user_sgpr_count += count_tes_user_sgprs(key);
|
||||
break;
|
||||
case MESA_SHADER_GEOMETRY:
|
||||
if (has_previous_stage) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue