aco: add integer min/max to can_swap_operands

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2883>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2883>
This commit is contained in:
Rhys Perry 2019-12-13 16:17:21 +00:00 committed by Marge Bot
parent f92a89a979
commit f978e0e516

View file

@ -393,6 +393,10 @@ bool can_swap_operands(aco_ptr<Instruction>& instr)
case aco_opcode::v_xor_b32:
case aco_opcode::v_max_f32:
case aco_opcode::v_min_f32:
case aco_opcode::v_max_i32:
case aco_opcode::v_min_i32:
case aco_opcode::v_max_u32:
case aco_opcode::v_min_u32:
case aco_opcode::v_cmp_eq_f32:
case aco_opcode::v_cmp_lg_f32:
return true;