freedreno/ir3: use nir pass to lower const to scalar
authorRob Clark <robclark@freedesktop.org>
Tue, 11 Aug 2015 15:47:46 +0000 (11:47 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 12 Aug 2015 22:37:43 +0000 (18:37 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 53faf16..0ab3345 100644 (file)
@@ -149,6 +149,7 @@ static struct nir_shader *to_nir(const struct tgsi_token *tokens)
        nir_opt_global_to_local(s);
        nir_convert_to_ssa(s);
        nir_lower_idiv(s);
+       nir_lower_load_const_to_scalar(s);
 
        do {
                progress = false;