mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
aco: Use s_setprio 3 at the beginning of every VS and TES.
The user-set priority of shaders matters very little, but we hope this might still help speed up VS input loads especially. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10106>
This commit is contained in:
parent
4c86c7aa15
commit
231ef14b3d
1 changed files with 4 additions and 0 deletions
|
|
@ -11785,6 +11785,10 @@ void select_program(Program *program,
|
|||
fix_ls_vgpr_init_bug(&ctx, startpgm);
|
||||
|
||||
split_arguments(&ctx, startpgm);
|
||||
|
||||
if (program->stage.has(SWStage::VS) || program->stage.has(SWStage::TES)) {
|
||||
Builder(ctx.program, ctx.block).sopp(aco_opcode::s_setprio, -1u, 0x3u);
|
||||
}
|
||||
}
|
||||
|
||||
if (ngg_no_gs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue