From e4f090d3a627f5765a905ad052bb1bb2176331e2 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Thu, 22 Aug 2024 22:34:11 -0700 Subject: [PATCH] intel/brw: Remove special treatment for 2-src in emit() helper For Gfx9+ no 2-src instructions need sources to fixed up. Special treatment remains for 3-src instructions. Reviewed-by: Ian Romanick Part-of: --- src/intel/compiler/brw_fs_builder.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/compiler/brw_fs_builder.h b/src/intel/compiler/brw_fs_builder.h index 691840991bd..b3159ed57b4 100644 --- a/src/intel/compiler/brw_fs_builder.h +++ b/src/intel/compiler/brw_fs_builder.h @@ -315,9 +315,7 @@ namespace brw { /* Use the emit() methods for specific operand counts to ensure that * opcode-specific operand fixups occur. */ - if (n == 2) { - return emit(opcode, dst, srcs[0], srcs[1]); - } else if (n == 3) { + if (n == 3) { return emit(opcode, dst, srcs[0], srcs[1], srcs[2]); } else { return emit(fs_inst(opcode, dispatch_width(), dst, srcs, n));