mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
aco: fix FS inputs loads in WQM with 16-bit
p_wqm needs to use the same size.
Fixes: 16d2c7ad55 ("aco/gfx11: perform FS input loads in WQM")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19788>
This commit is contained in:
parent
b24fe2badf
commit
50fe37070f
1 changed files with 8 additions and 2 deletions
|
|
@ -5347,7 +5347,10 @@ emit_interp_instr_gfx11(isel_context* ctx, unsigned idx, unsigned component, Tem
|
|||
res = bld.vinterp_inreg(aco_opcode::v_interp_p2_f32_inreg, bld.def(v1), p, coord2, p10);
|
||||
}
|
||||
/* lds_param_load must be done in WQM, and the result kept valid for helper lanes. */
|
||||
emit_wqm(bld, res, dst, true);
|
||||
if (dst.regClass() != v2b)
|
||||
emit_wqm(bld, res, dst, true);
|
||||
else
|
||||
emit_extract_vector(ctx, emit_wqm(bld, res, Temp(0, s1), true), 0, dst);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -5417,7 +5420,10 @@ emit_interp_mov_instr(isel_context* ctx, unsigned idx, unsigned component, unsig
|
|||
Temp res = bld.vop1_dpp(aco_opcode::v_mov_b32, bld.def(v1), p, dpp_ctrl);
|
||||
|
||||
/* lds_param_load must be done in WQM, and the result kept valid for helper lanes. */
|
||||
emit_wqm(bld, res, dst, true);
|
||||
if (dst.regClass() != v2b)
|
||||
emit_wqm(bld, res, dst, true);
|
||||
else
|
||||
emit_extract_vector(ctx, emit_wqm(bld, res, Temp(0, s1), true), 0, dst);
|
||||
}
|
||||
} else {
|
||||
bld.vintrp(aco_opcode::v_interp_mov_f32, Definition(dst), Operand::c32(vertex_id),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue