radv: pass the number of patch control points to si_get_ia_multi_vgt_param()
To prepare for dynamic patch control points. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18344>
This commit is contained in:
committed by
Marge Bot
parent
5bfac03c8a
commit
556b297977
@@ -3982,12 +3982,14 @@ si_emit_ia_multi_vgt_param(struct radv_cmd_buffer *cmd_buffer, bool instanced_dr
|
||||
struct radv_cmd_state *state = &cmd_buffer->state;
|
||||
unsigned topology = state->dynamic.primitive_topology;
|
||||
bool prim_restart_enable = state->dynamic.primitive_restart_enable;
|
||||
unsigned patch_control_points = state->graphics_pipeline->tess_patch_control_points;
|
||||
struct radeon_cmdbuf *cs = cmd_buffer->cs;
|
||||
unsigned ia_multi_vgt_param;
|
||||
|
||||
ia_multi_vgt_param =
|
||||
si_get_ia_multi_vgt_param(cmd_buffer, instanced_draw, indirect_draw, count_from_stream_output,
|
||||
draw_vertex_count, topology, prim_restart_enable);
|
||||
draw_vertex_count, topology, prim_restart_enable,
|
||||
patch_control_points);
|
||||
|
||||
if (state->last_ia_multi_vgt_param != ia_multi_vgt_param) {
|
||||
if (info->gfx_level == GFX9) {
|
||||
|
||||
Reference in New Issue
Block a user