Mesa (master): glspirv: Call pass to lower frexp instructions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 20 06:22:19 UTC 2019


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

Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date:   Sat Mar 23 10:28:03 2019 -0700

glspirv: Call pass to lower frexp instructions

These were previously handled by the spirv_to_nir, but that changed to
be an explict pass in 23d30f4099f "spirv,nir: lower
frexp_exp/frexp_sig inside a new NIR pass"

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/mesa/main/glspirv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c
index bb5a3f7452b..9faaad33628 100644
--- a/src/mesa/main/glspirv.c
+++ b/src/mesa/main/glspirv.c
@@ -262,6 +262,8 @@ _mesa_spirv_to_nir(struct gl_context *ctx,
    if (nir->info.stage == MESA_SHADER_VERTEX)
       nir_remap_dual_slot_attributes(nir, &linked_shader->Program->DualSlotInputs);
 
+   NIR_PASS_V(nir, nir_lower_frexp);
+
    return nir;
 }
 




More information about the mesa-commit mailing list