radv: make vertex param sgpr count more explicit
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
4e0a3c2527
commit
da7ffc3b97
|
@ -108,11 +108,12 @@ static bool needs_view_index_sgpr(struct radv_shader_args *args,
|
||||||
static uint8_t
|
static uint8_t
|
||||||
count_vs_user_sgprs(struct radv_shader_args *args)
|
count_vs_user_sgprs(struct radv_shader_args *args)
|
||||||
{
|
{
|
||||||
uint8_t count = 0;
|
uint8_t count = 2;
|
||||||
|
|
||||||
if (args->shader_info->vs.has_vertex_buffers)
|
if (args->shader_info->vs.has_vertex_buffers)
|
||||||
count++;
|
count++;
|
||||||
count += args->shader_info->vs.needs_draw_id ? 3 : 2;
|
if (args->shader_info->vs.needs_draw_id)
|
||||||
|
count++;
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue