Mesa (main): aco: split load_sbt_amd result

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 6 15:35:33 UTC 2022


Module: Mesa
Branch: main
Commit: 359e60cf5ed80b95de1e9f60265d1a3bce50b79a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=359e60cf5ed80b95de1e9f60265d1a3bce50b79a

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Fri Mar 25 18:00:56 2022 +0000

aco: split load_sbt_amd result

fossil-db (Sienna Cichlid):
Totals from 11 (0.01% of 162293) affected shaders:
Instrs: 47857 -> 47738 (-0.25%)
CodeSize: 261556 -> 261080 (-0.18%)
Latency: 1176822 -> 1176245 (-0.05%)
InvThroughput: 784549 -> 784165 (-0.05%)
Copies: 5959 -> 5840 (-2.00%)

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16203>

---

 src/amd/compiler/aco_instruction_selection.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index ae49928dddf..4bd7ca1cea6 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -5621,6 +5621,7 @@ visit_load_sbt_amd(isel_context* ctx, nir_intrinsic_instr* instr)
    Temp desc_base = convert_pointer_to_64_bit(ctx, get_arg(ctx, ctx->args->ac.sbt_descriptors));
    Operand desc_off = bld.copy(bld.def(s1), Operand::c32(binding * 16u));
    bld.smem(aco_opcode::s_load_dwordx4, Definition(dst), desc_base, desc_off);
+   emit_split_vector(ctx, dst, 4);
 }
 
 void



More information about the mesa-commit mailing list