From ef29bb6bc53bf07097ddaf6329c8892f50168e7e Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Wed, 21 Jul 2021 15:24:29 -0700 Subject: [PATCH] intel/compiler: Handle ternary add in lower_simd_width We need to lower the add3 instruction simd width otherwise in simd32 mode, we endup writing 4 register wide data which is not allowed. Reported-by: Jordan Justen Signed-off-by: Sagar Ghuge Reviewed-by: Jordan Justen Part-of: --- src/intel/compiler/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 6052d37..8499a35 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -7322,6 +7322,7 @@ get_lowered_simd_width(const struct intel_device_info *devinfo, case BRW_OPCODE_SAD2: case BRW_OPCODE_MAD: case BRW_OPCODE_LRP: + case BRW_OPCODE_ADD3: case FS_OPCODE_PACK: case SHADER_OPCODE_SEL_EXEC: case SHADER_OPCODE_CLUSTER_BROADCAST: -- 2.7.4