Mesa (master): aco: Use s_setprio 3 at the beginning of every VS and TES.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 14 14:35:37 UTC 2021
Module: Mesa
Branch: master
Commit: 231ef14b3db4e0ed5b4fa7e2f83f3fe09495f2f5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=231ef14b3db4e0ed5b4fa7e2f83f3fe09495f2f5
Author: Timur Kristóf <timur.kristof at gmail.com>
Date: Thu Apr 8 13:38:13 2021 +0200
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 at gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10106>
---
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)
More information about the mesa-commit
mailing list