From 997ea2e27355eb8d77f7d1717d3ab70718f0dd95 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sun, 19 Jan 2025 10:17:12 +0100 Subject: [PATCH] aco: update is_dual_issue_capable for gfx11.5+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Daniel Schürmann Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_statistics.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_statistics.cpp b/src/amd/compiler/aco_statistics.cpp index 020ee55d8e8..afcd668f9c2 100644 --- a/src/amd/compiler/aco_statistics.cpp +++ b/src/amd/compiler/aco_statistics.cpp @@ -142,7 +142,12 @@ is_dual_issue_capable(const Program& program, const Instruction& instr) } return false; } - default: return false; + default: + if (instr.isVINTERP_INREG()) + return program.gfx_level >= GFX11_5; + if (instr.isVOPC() && instr_info.classes[(int)instr.opcode] == instr_class::valu32) + return program.gfx_level == GFX11_5; + return false; } }