gallivm/nir: lower packing
authorDave Airlie <airlied@redhat.com>
Fri, 13 Dec 2019 03:17:48 +0000 (13:17 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Dec 2019 03:26:33 +0000 (13:26 +1000)
This fixes some CL upsample tests, which lower into packing that needs
lowering.

Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_nir.c

index f2fb76aeba24540e5f1febf19c317f9d0d4f66fb..24036dba9837541bffdad224425e9f482969d3a6 100644 (file)
@@ -1815,6 +1815,7 @@ void lp_build_opt_nir(struct nir_shader *nir)
       progress = false;
       NIR_PASS_V(nir, nir_opt_constant_folding);
       NIR_PASS_V(nir, nir_opt_algebraic);
+      NIR_PASS_V(nir, nir_lower_pack);
    } while (progress);
    nir_lower_bool_to_int32(nir);
 }