radv: simplify vs draw param counting during setup
we can just reuse the existing function for this Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8788>
This commit is contained in:
parent
1ffa615444
commit
65626eba29
|
@ -412,10 +412,7 @@ set_vs_specific_input_locs(struct radv_shader_args *args,
|
|||
user_sgpr_idx);
|
||||
}
|
||||
|
||||
unsigned vs_num = 2;
|
||||
if (args->shader_info->vs.needs_draw_id)
|
||||
vs_num++;
|
||||
|
||||
unsigned vs_num = count_vs_user_sgprs(args) - args->shader_info->vs.has_vertex_buffers;
|
||||
set_loc_shader(args, AC_UD_VS_BASE_VERTEX_START_INSTANCE,
|
||||
user_sgpr_idx, vs_num);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue