aco: skip LS VGPR initialization bug workaround if the prolog exists

Otherwise, we would do this twice.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26111>
This commit is contained in:
Rhys Perry 2023-11-07 17:45:59 +00:00
parent 967c52097e
commit b70c235e4a

View file

@ -11847,7 +11847,8 @@ select_shader(isel_context& ctx, nir_shader* nir, const bool need_startpgm, cons
Pseudo_instruction* startpgm = add_startpgm(&ctx);
append_logical_start(ctx.block);
if (unlikely(ctx.options->has_ls_vgpr_init_bug && ctx.stage == vertex_tess_control_hs))
if (ctx.options->has_ls_vgpr_init_bug && ctx.stage == vertex_tess_control_hs &&
!program->info.vs.has_prolog)
fix_ls_vgpr_init_bug(&ctx);
split_arguments(&ctx, startpgm);