From c978394e000a9aa5e5fc6bbd7e82209a4ccaae68 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Mon, 21 Jul 2025 16:45:52 +0200 Subject: [PATCH] intel/compiler: use the WA framework when emitting WA 14014595444 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: d276ad4 "intel/compiler: implement Wa_14014595444 for DG2" Signed-off-by: Rohan Garg Reviewed-by: Tapani Pälli Part-of: --- src/intel/compiler/brw_lower_logical_sends.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_lower_logical_sends.cpp b/src/intel/compiler/brw_lower_logical_sends.cpp index 17f516bf937..4687dd1b783 100644 --- a/src/intel/compiler/brw_lower_logical_sends.cpp +++ b/src/intel/compiler/brw_lower_logical_sends.cpp @@ -1113,8 +1113,8 @@ lower_sampler_logical_send(const brw_builder &bld, brw_inst *inst, bld.MOV(sources[length++], min_lod); /* Wa_14014595444: Populate MLOD as parameter 5 (twice). */ - if (devinfo->verx10 == 125 && op == FS_OPCODE_TXB_LOGICAL && - shadow_c.file == BAD_FILE) + if (intel_needs_workaround(devinfo, 14014595444) && + op == FS_OPCODE_TXB_LOGICAL && shadow_c.file == BAD_FILE) bld.MOV(sources[length++], min_lod); }