From 5b2b7829404779c348f43a5a959c7b0d8a83dd5c Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 13 May 2023 13:00:04 +0200 Subject: [PATCH] aco/ra: use smaller operand stride for VOP3P with DPP Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 2e98bb665b9..d57bfabed51 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -512,7 +512,7 @@ get_subdword_operand_stride(amd_gfx_level gfx_level, const aco_ptr& return rc.bytes(); if (can_use_opsel(gfx_level, instr->opcode, idx)) return 2; - if (instr->format == Format::VOP3P) + if (instr->isVOP3P()) return 2; }