broadcom/vc5: Enable NIR txd lowering on all txd instructions.
authorEric Anholt <eric@anholt.net>
Wed, 22 Nov 2017 00:33:29 +0000 (16:33 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 14 Dec 2017 22:36:17 +0000 (14:36 -0800)
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@intel.com>
src/broadcom/compiler/vir.c

index e7c050923c7a5276ff7c322dbbffe9bb244f6764..d95a150c720a02e196eed5be1a55f43bbba62471 100644 (file)
@@ -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. */