From: Eric Anholt Date: Wed, 22 Nov 2017 00:33:29 +0000 (-0800) Subject: broadcom/vc5: Enable NIR txd lowering on all txd instructions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1171f1749ddf7fdff0725804868bb375f2407526;p=mesa.git broadcom/vc5: Enable NIR txd lowering on all txd instructions. Fixes almost all of piglit's arb_shader_texture_lod grad tests, except for the base -texgrad/texgradcube ones which fail on what appear to be precision problems. Reviewed-by: Ian Romanick --- diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index e7c050923c7..d95a150c720 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -541,6 +541,7 @@ static void v3d_lower_nir(struct v3d_compile *c) { struct nir_lower_tex_options tex_options = { + .lower_txd = true, .lower_rect = false, /* XXX */ .lower_txp = ~0, /* Apply swizzles to all samplers. */