Mesa (master): intel/compiler: Lower txd for 3D samplers on XeHP.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 16 08:39:03 UTC 2021


Module: Mesa
Branch: master
Commit: 635ed58e527f1a1c0b11eca0552e892f56f8ccf6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=635ed58e527f1a1c0b11eca0552e892f56f8ccf6

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Fri Dec 21 02:21:57 2018 -0800

intel/compiler: Lower txd for 3D samplers on XeHP.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10000>

---

 src/intel/compiler/brw_nir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index 1dd8d5e944e..dae10a0c499 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -817,12 +817,13 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
    if (devinfo->ver >= 12)
       OPT(brw_nir_clamp_image_1d_2d_array_sizes);
 
-   static const nir_lower_tex_options tex_options = {
+   const nir_lower_tex_options tex_options = {
       .lower_txp = ~0,
       .lower_txf_offset = true,
       .lower_rect_offset = true,
       .lower_tex_without_implicit_lod = true,
       .lower_txd_cube_map = true,
+      .lower_txd_3d = devinfo->verx10 >= 125,
       .lower_txb_shadow_clamp = true,
       .lower_txd_shadow_clamp = true,
       .lower_txd_offset_clamp = true,



More information about the mesa-commit mailing list