mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 12:40:09 +01:00
aco/gfx10+: don't use v_cmpx with VCC def
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26163>
This commit is contained in:
parent
509ce19643
commit
1d167d187e
1 changed files with 5 additions and 2 deletions
|
|
@ -1100,8 +1100,11 @@ emit_bpermute_readlane(Program* program, aco_ptr<Instruction>& instr, Builder& b
|
|||
*/
|
||||
for (unsigned n = 0; n < program->wave_size; ++n) {
|
||||
/* Activate the lane which has N for its source index */
|
||||
bld.vopc(aco_opcode::v_cmpx_eq_u32, Definition(exec, bld.lm), clobber_vcc, Operand::c32(n),
|
||||
index);
|
||||
if (program->gfx_level >= GFX10)
|
||||
bld.vopc(aco_opcode::v_cmpx_eq_u32, Definition(exec, bld.lm), Operand::c32(n), index);
|
||||
else
|
||||
bld.vopc(aco_opcode::v_cmpx_eq_u32, clobber_vcc, Definition(exec, bld.lm), Operand::c32(n),
|
||||
index);
|
||||
/* Read the data from lane N */
|
||||
bld.readlane(Definition(vcc, s1), input, Operand::c32(n));
|
||||
/* On the active lane, move the data we read from lane N to the destination VGPR */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue