diff options
author | Daniel Schürmann <daniel@schuermann.dev> | 2022-03-23 18:23:29 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-25 22:02:50 +0000 |
commit | 2d1e6b756e9d4e09ca1a661df6394cd79a1a912b (patch) | |
tree | 4f1debb8bb3d219db5f058a6ed81d104ca8433ea /src/amd/compiler/aco_register_allocation.cpp | |
parent | b98a9dcc36b4fb3c7184eaf4a00d9f35314dc5ef (diff) | |
download | mesa-2d1e6b756e9d4e09ca1a661df6394cd79a1a912b.tar.gz |
aco: remove 'high' parameter from can_use_opsel()
No fossil-db changes.
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15551>
Diffstat (limited to 'src/amd/compiler/aco_register_allocation.cpp')
-rw-r--r-- | src/amd/compiler/aco_register_allocation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index a41c61f1ff4..5b4733354ba 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -501,7 +501,7 @@ get_subdword_operand_stride(chip_class chip, const aco_ptr<Instruction>& instr, if (instr->isVALU()) { if (can_use_SDWA(chip, instr, false)) return rc.bytes(); - if (can_use_opsel(chip, instr->opcode, idx, true)) + if (can_use_opsel(chip, instr->opcode, idx)) return 2; if (instr->format == Format::VOP3P) return 2; @@ -615,7 +615,7 @@ get_subdword_definition_info(Program* program, const aco_ptr<Instruction>& instr unsigned stride = 4u; if (instr->opcode == aco_opcode::v_fma_mixlo_f16 || - can_use_opsel(chip, instr->opcode, -1, true)) + can_use_opsel(chip, instr->opcode, -1)) stride = 2u; return std::make_pair(stride, bytes_written); @@ -681,7 +681,7 @@ add_subdword_definition(Program* program, aco_ptr<Instruction>& instr, PhysReg r /* check if we can use opsel */ if (instr->format == Format::VOP3) { assert(reg.byte() == 2); - assert(can_use_opsel(chip, instr->opcode, -1, true)); + assert(can_use_opsel(chip, instr->opcode, -1)); instr->vop3().opsel |= (1 << 3); /* dst in high half */ return; } |