From 348506462a0e4497e1bd12ddeb17a5924fb2ee09 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 4 Mar 2024 03:17:03 -0800 Subject: [PATCH] intel/brw: Stop checking mlen on math opcodes in CSE pass These were only messages on Gfx4 which we no longer support here. Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_fs_cse.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_fs_cse.cpp b/src/intel/compiler/brw_fs_cse.cpp index 6fdcfa23ec7..587721bd4b8 100644 --- a/src/intel/compiler/brw_fs_cse.cpp +++ b/src/intel/compiler/brw_fs_cse.cpp @@ -100,7 +100,6 @@ is_expression(const fs_visitor *v, const fs_inst *const inst) case SHADER_OPCODE_TG4_OFFSET_LOD_LOGICAL: case SHADER_OPCODE_TG4_OFFSET_BIAS_LOGICAL: case FS_OPCODE_PACK: - return true; case SHADER_OPCODE_RCP: case SHADER_OPCODE_RSQ: case SHADER_OPCODE_SQRT: @@ -111,7 +110,7 @@ is_expression(const fs_visitor *v, const fs_inst *const inst) case SHADER_OPCODE_INT_REMAINDER: case SHADER_OPCODE_SIN: case SHADER_OPCODE_COS: - return inst->mlen < 2; + return true; case SHADER_OPCODE_LOAD_PAYLOAD: return !is_coalescing_payload(v->alloc, inst); default: