From: Dave Airlie Date: Fri, 19 Jun 2020 07:01:26 +0000 (+1000) Subject: gallivm/nir: lower tg4 offsets. X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=5177ffed6562a06b3e6ab83c31baad3cc0f21db6 gallivm/nir: lower tg4 offsets. Fixes: dEQP-VK.glsl.texture_gather.offsets.* Reviewed-by: Roland Scheidegger Part-of: --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index f407f6204c0..4c919e7a98f 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -2016,6 +2016,12 @@ bool lp_build_nir_llvm( void lp_build_opt_nir(struct nir_shader *nir) { bool progress; + + static const struct nir_lower_tex_options lower_tex_options = { + .lower_tg4_offsets = true, + }; + NIR_PASS_V(nir, nir_lower_tex, &lower_tex_options); + do { progress = false; NIR_PASS_V(nir, nir_opt_constant_folding);