Mesa (master): gallivm/nir: lower tg4 offsets.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 31 03:35:23 UTC 2020


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Jun 19 17:01:26 2020 +1000

gallivm/nir: lower tg4 offsets.

Fixes:
dEQP-VK.glsl.texture_gather.offsets.*

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6381>

---

 src/gallium/auxiliary/gallivm/lp_bld_nir.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index f407f6204c0..4c919e7a98f 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@ -2016,6 +2016,12 @@ bool lp_build_nir_llvm(
 void lp_build_opt_nir(struct nir_shader *nir)
 {
    bool progress;
+
+   static const struct nir_lower_tex_options lower_tex_options = {
+      .lower_tg4_offsets = true,
+   };
+   NIR_PASS_V(nir, nir_lower_tex, &lower_tex_options);
+
    do {
       progress = false;
       NIR_PASS_V(nir, nir_opt_constant_folding);



More information about the mesa-commit mailing list