intel/compiler: use the WA framework when emitting WA 14014595444

Fixes: d276ad4 "intel/compiler: implement Wa_14014595444 for DG2"
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36262>
This commit is contained in:
Rohan Garg 2025-07-21 16:45:52 +02:00 committed by Marge Bot
parent fed9bca207
commit c978394e00

View file

@ -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);
}