mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 00:30:13 +01:00
aco: fix mbcnt_amd with wave32
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/8085>
This commit is contained in:
parent
2ffae5a439
commit
feee375db9
1 changed files with 2 additions and 0 deletions
|
|
@ -8349,6 +8349,8 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr)
|
||||||
case nir_intrinsic_mbcnt_amd: {
|
case nir_intrinsic_mbcnt_amd: {
|
||||||
Temp src = get_ssa_temp(ctx, instr->src[0].ssa);
|
Temp src = get_ssa_temp(ctx, instr->src[0].ssa);
|
||||||
Temp dst = get_ssa_temp(ctx, &instr->dest.ssa);
|
Temp dst = get_ssa_temp(ctx, &instr->dest.ssa);
|
||||||
|
/* Fit 64-bit mask for wave32 */
|
||||||
|
src = emit_extract_vector(ctx, src, 0, RegClass(src.type(), bld.lm.size()));
|
||||||
Temp wqm_tmp = emit_mbcnt(ctx, bld.tmp(v1), Operand(src));
|
Temp wqm_tmp = emit_mbcnt(ctx, bld.tmp(v1), Operand(src));
|
||||||
emit_wqm(ctx, wqm_tmp, dst);
|
emit_wqm(ctx, wqm_tmp, dst);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue