freedreno/ir3: use NIR to lower ffract instead of tgsi_lowering
authorRob Clark <robclark@freedesktop.org>
Mon, 14 Sep 2015 15:54:05 +0000 (11:54 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 16 Sep 2015 12:28:18 +0000 (08:28 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 5a069fb5378796f36b3b023f0fe502d45b489f01..7ce1c976e9c554011bab981978dffc94dbee21d5 100644 (file)
@@ -134,6 +134,7 @@ static struct nir_shader *to_nir(const struct tgsi_token *tokens)
                        .lower_fsat = true,
                        .lower_scmp = true,
                        .lower_flrp = true,
+                       .lower_ffract = true,
                        .native_integers = true,
        };
        bool progress;
@@ -187,7 +188,6 @@ lower_tgsi(struct ir3_compile *ctx, const struct tgsi_token *tokens,
        struct tgsi_shader_info info;
        struct tgsi_lowering_config lconfig = {
                        .color_two_side = so->key.color_two_side,
-                       .lower_FRC = true,
        };
 
        switch (so->type) {