diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2018-12-21 02:21:57 -0800 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-16 08:27:35 +0000 |
commit | 635ed58e527f1a1c0b11eca0552e892f56f8ccf6 (patch) | |
tree | 4a473eabdeddf7ef9f588ff645e4978e3a236482 | |
parent | 515ee73b4e2320daa18a6918d896847bf236d189 (diff) |
intel/compiler: Lower txd for 3D samplers on XeHP.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10000>
-rw-r--r-- | src/intel/compiler/brw_nir.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |