From 1171f1749ddf7fdff0725804868bb375f2407526 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 21 Nov 2017 16:33:29 -0800 Subject: [PATCH] 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 --- src/broadcom/compiler/vir.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.30.2