mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 20:00:38 +01:00
aco/isel: Don't add scratch offset as gfx8- soffset if no offsets exist
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35031>
This commit is contained in:
parent
a5eba11657
commit
e006f68b11
1 changed files with 2 additions and 1 deletions
|
|
@ -3272,7 +3272,8 @@ visit_load_scratch(isel_context* ctx, nir_intrinsic_instr* instr)
|
|||
info.resource = load_scratch_resource(
|
||||
ctx->program, bld, ctx->program->private_segment_buffers.size() - 1, false);
|
||||
info.offset = Operand(as_vgpr(ctx, get_ssa_temp(ctx, instr->src[0].ssa)));
|
||||
info.soffset = ctx->program->scratch_offsets.back();
|
||||
if (!ctx->program->scratch_offsets.empty())
|
||||
info.soffset = ctx->program->scratch_offsets.back();
|
||||
emit_load(ctx, bld, info, scratch_mubuf_load_params);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue