glspirv: Call pass to lower frexp instructions
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 23 Mar 2019 17:28:03 +0000 (10:28 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 20 Jun 2019 05:07:57 +0000 (22:07 -0700)
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@jlekstrand.net>
src/mesa/main/glspirv.c

index bb5a3f7452b004ce0f497917d45508484ad2ecac..9faaad33628eb535aa5a16a0647b85bbfbee72c4 100644 (file)
@@ -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;
 }