Module: Mesa
Branch: main
Commit: d276ad45207356abeed1fd920714443b553ed1a2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d276ad45207356abeed1fd920714443b553ed1a2

Author: Tapani Pälli <[email protected]>
Date:   Mon Sep  5 08:08:32 2022 +0300

intel/compiler: implement Wa_14014595444 for DG2

According to the workaround, we should setup MLOD as parameter
4 and 5 for the sample_b message.

v2: only SAMPLE_B, not SAMPLE_B_C (Lionel)

Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18408>

---

 src/intel/compiler/brw_lower_logical_sends.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/intel/compiler/brw_lower_logical_sends.cpp 
b/src/intel/compiler/brw_lower_logical_sends.cpp
index cfcf9a0e8a5..4c97dfb22bf 100644
--- a/src/intel/compiler/brw_lower_logical_sends.cpp
+++ b/src/intel/compiler/brw_lower_logical_sends.cpp
@@ -1068,6 +1068,11 @@ lower_sampler_logical_send_gfx7(const fs_builder &bld, 
fs_inst *inst, opcode op,
       }
 
       bld.MOV(sources[length++], min_lod);
+
+      /* Wa_14014595444: Populate MLOD as parameter 5 (twice). */
+       if (devinfo->verx10 == 125 && op == FS_OPCODE_TXB &&
+          !inst->shadow_compare)
+         bld.MOV(sources[length++], min_lod);
    }
 
    const fs_reg src_payload =

Reply via email to