aco: use alignment information in visit_load_constant()

The intrinsic has this now.

No fossil-db changes.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29912>
This commit is contained in:
Rhys Perry
2024-06-26 12:22:45 +01:00
committed by Marge Bot
parent 7c995df9aa
commit a6eb5c9caa

View File

@@ -5860,8 +5860,8 @@ visit_load_constant(isel_context* ctx, nir_intrinsic_instr* instr)
Operand::c32(MIN2(base + range, ctx->shader->constant_data_size)),
Operand::c32(desc[3]));
unsigned size = instr->def.bit_size / 8;
// TODO: get alignment information for subdword constants
load_buffer(ctx, instr->num_components, size, dst, rsrc, offset, size, 0);
load_buffer(ctx, instr->num_components, size, dst, rsrc, offset, nir_intrinsic_align_mul(instr),
nir_intrinsic_align_offset(instr));
}
/* Packs multiple Temps of different sizes in to a vector of v1 Temps.