From 467ee9d27ab97476ca8bd4640a663851e1886560 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Thu, 28 Mar 2024 11:17:03 +0100 Subject: [PATCH] intel/brw: Xe2+ can do SIMD16 for extended math on HF types BSpec 56797: Math operation rules when half-floats are used on both source and destination operands and both source and destinations are packed. The execution size must be 16. Signed-off-by: Rohan Garg Reviewed-by: Ian Romanick Part-of: --- src/intel/compiler/brw_fs_lower_simd_width.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_fs_lower_simd_width.cpp b/src/intel/compiler/brw_fs_lower_simd_width.cpp index 2582b810640..26c5cf026bc 100644 --- a/src/intel/compiler/brw_fs_lower_simd_width.cpp +++ b/src/intel/compiler/brw_fs_lower_simd_width.cpp @@ -287,8 +287,8 @@ brw_fs_get_lowered_simd_width(const fs_visitor *shader, const fs_inst *inst) * The execution size must be 16. */ if (is_half_float_src_dst(inst)) - return MIN2(8, inst->exec_size); - + return devinfo->ver < 20 ? MIN2(8, inst->exec_size) : + MIN2(16, inst->exec_size); return MIN2(16, inst->exec_size); }