From 231ef14b3db4e0ed5b4fa7e2f83f3fe09495f2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 8 Apr 2021 13:38:13 +0200 Subject: [PATCH] aco: Use s_setprio 3 at the beginning of every VS and TES. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 57ec804d272..845d56e4cf2 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -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)