mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
aco: Fixup out_launch_size_y in the RT prolog for 1D dispatch
launch_size_y is set to ACO_RT_CONVERTED_2D_LAUNCH_SIZE for 1D dispatches. The prolog needs to set it to 1 so that the app shader loads the correct value. cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37974>
This commit is contained in:
parent
067b05d5b9
commit
47ffe2ecd4
1 changed files with 2 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ select_rt_prolog(Program* program, ac_shader_config* config,
|
|||
bld.sop2(Builder::s_cselect, Definition(vcc, bld.lm),
|
||||
Operand::c32_or_c64(-1u, program->wave_size == 64),
|
||||
Operand::c32_or_c64(0, program->wave_size == 64), Operand(scc, s1));
|
||||
bld.sop2(aco_opcode::s_cselect_b32, Definition(out_launch_size_y, s1),
|
||||
Operand(out_launch_size_y, s1), Operand::c32(1), Operand(scc, s1));
|
||||
bld.vop2(aco_opcode::v_cndmask_b32, Definition(out_launch_ids[0], v1),
|
||||
Operand(tmp_invocation_idx, v1), Operand(out_launch_ids[0], v1), Operand(vcc, bld.lm));
|
||||
bld.vop2(aco_opcode::v_cndmask_b32, Definition(out_launch_ids[1], v1), Operand::zero(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue