mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
aco: support v_permlane64_b32
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27118>
This commit is contained in:
parent
c67d4a75ba
commit
a626f765b5
3 changed files with 5 additions and 1 deletions
|
|
@ -175,6 +175,7 @@ struct InstrPred {
|
|||
|
||||
if (a->opcode == aco_opcode::v_permlane16_b32 ||
|
||||
a->opcode == aco_opcode::v_permlanex16_b32 ||
|
||||
a->opcode == aco_opcode::v_permlane64_b32 ||
|
||||
a->opcode == aco_opcode::v_readfirstlane_b32)
|
||||
return aV.pass_flags == bV.pass_flags;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -549,6 +549,7 @@ can_use_VOP3(opt_ctx& ctx, const aco_ptr<Instruction>& instr)
|
|||
instr->opcode != aco_opcode::v_madmk_f16 && instr->opcode != aco_opcode::v_madak_f16 &&
|
||||
instr->opcode != aco_opcode::v_fmamk_f32 && instr->opcode != aco_opcode::v_fmaak_f32 &&
|
||||
instr->opcode != aco_opcode::v_fmamk_f16 && instr->opcode != aco_opcode::v_fmaak_f16 &&
|
||||
instr->opcode != aco_opcode::v_permlane64_b32 &&
|
||||
instr->opcode != aco_opcode::v_readlane_b32 &&
|
||||
instr->opcode != aco_opcode::v_writelane_b32 &&
|
||||
instr->opcode != aco_opcode::v_readfirstlane_b32;
|
||||
|
|
@ -631,6 +632,7 @@ can_apply_sgprs(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
instr->opcode != aco_opcode::v_writelane_b32_e64 &&
|
||||
instr->opcode != aco_opcode::v_permlane16_b32 &&
|
||||
instr->opcode != aco_opcode::v_permlanex16_b32 &&
|
||||
instr->opcode != aco_opcode::v_permlane64_b32 &&
|
||||
instr->opcode != aco_opcode::v_interp_p1_f32 &&
|
||||
instr->opcode != aco_opcode::v_interp_p2_f32 &&
|
||||
instr->opcode != aco_opcode::v_interp_mov_f32 &&
|
||||
|
|
|
|||
|
|
@ -454,7 +454,8 @@ validate_ir(Program* program)
|
|||
continue;
|
||||
}
|
||||
if (instr->opcode == aco_opcode::v_permlane16_b32 ||
|
||||
instr->opcode == aco_opcode::v_permlanex16_b32) {
|
||||
instr->opcode == aco_opcode::v_permlanex16_b32 ||
|
||||
instr->opcode == aco_opcode::v_permlane64_b32) {
|
||||
check(i != 0 || op.isOfType(RegType::vgpr),
|
||||
"Operand 0 of v_permlane must be VGPR", instr.get());
|
||||
check(i == 0 || op.isOfType(RegType::sgpr) || op.isConstant(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue