From: Dave Airlie Date: Fri, 13 Dec 2019 03:17:48 +0000 (+1000) Subject: gallivm/nir: lower packing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5be1ea7d7987d7aed31fe45a9c3352dc4a41cbdd;p=mesa.git gallivm/nir: lower packing This fixes some CL upsample tests, which lower into packing that needs lowering. Acked-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index f2fb76aeba2..24036dba983 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -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); }