Mesa (master): broadcom/vc5: Enable NIR txd lowering on all txd instructions.

Eric Anholt anholt at kemper.freedesktop.org
Thu Dec 14 22:38:01 UTC 2017


Module: Mesa
Branch: master
Commit: 1171f1749ddf7fdff0725804868bb375f2407526
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1171f1749ddf7fdff0725804868bb375f2407526

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Nov 21 16:33:29 2017 -0800

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 <ian.d.romanick at intel.com>

---

 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 e7c050923c..d95a150c72 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. */




More information about the mesa-commit mailing list