From 5be1ea7d7987d7aed31fe45a9c3352dc4a41cbdd Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 13 Dec 2019 13:17:48 +1000 Subject: [PATCH] gallivm/nir: lower packing This fixes some CL upsample tests, which lower into packing that needs lowering. Acked-by: Roland Scheidegger --- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2