radv,aco: implement 64-bit inline push constants
fossil-db (Sienna Cichlid): Totals from 21 (0.02% of 134621) affected shaders: CodeSize: 1932 -> 1560 (-19.25%) Instrs: 357 -> 303 (-15.13%) Latency: 6576 -> 5883 (-10.54%) InvThroughput: 26304 -> 23532 (-10.54%) SClause: 42 -> 24 (-42.86%) Copies: 90 -> 105 (+16.67%); split: -10.00%, +26.67% PreSGPRs: 144 -> 201 (+39.58%) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12145>
This commit is contained in:
@@ -5500,7 +5500,10 @@ visit_load_push_constant(isel_context* ctx, nir_intrinsic_instr* instr)
|
||||
unsigned count = instr->dest.ssa.num_components;
|
||||
nir_const_value* index_cv = nir_src_as_const_value(instr->src[0]);
|
||||
|
||||
if (index_cv && instr->dest.ssa.bit_size == 32) {
|
||||
if (instr->dest.ssa.bit_size == 64)
|
||||
count *= 2;
|
||||
|
||||
if (index_cv && instr->dest.ssa.bit_size >= 32) {
|
||||
unsigned start = (offset + index_cv->u32) / 4u;
|
||||
uint64_t mask = BITFIELD64_MASK(count) << start;
|
||||
if ((ctx->args->ac.inline_push_const_mask | mask) == ctx->args->ac.inline_push_const_mask &&
|
||||
|
||||
Reference in New Issue
Block a user