mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
aco: allow 8/16-bit shared loads
These should work now 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/4639>
This commit is contained in:
parent
48b7beb7b0
commit
7db7206631
1 changed files with 0 additions and 2 deletions
|
|
@ -6598,7 +6598,6 @@ void visit_load_shared(isel_context *ctx, nir_intrinsic_instr *instr)
|
|||
{
|
||||
// TODO: implement sparse reads using ds_read2_b32 and nir_ssa_def_components_read()
|
||||
Temp dst = get_ssa_temp(ctx, &instr->dest.ssa);
|
||||
assert(instr->dest.ssa.bit_size >= 32 && "Bitsize not supported in load_shared.");
|
||||
Temp address = as_vgpr(ctx, get_ssa_temp(ctx, instr->src[0].ssa));
|
||||
Builder bld(ctx->program, ctx->block);
|
||||
|
||||
|
|
@ -6613,7 +6612,6 @@ void visit_store_shared(isel_context *ctx, nir_intrinsic_instr *instr)
|
|||
Temp data = get_ssa_temp(ctx, instr->src[0].ssa);
|
||||
Temp address = as_vgpr(ctx, get_ssa_temp(ctx, instr->src[1].ssa));
|
||||
unsigned elem_size_bytes = instr->src[0].ssa->bit_size / 8;
|
||||
assert(elem_size_bytes >= 4 && "Only 32bit & 64bit store_shared currently supported.");
|
||||
|
||||
unsigned align = nir_intrinsic_align_mul(instr) ? nir_intrinsic_align(instr) : elem_size_bytes;
|
||||
store_lds(ctx, elem_size_bytes, data, writemask, address, nir_intrinsic_base(instr), align);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue