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 53faf16ae307d0801255978a1c0e8f5377825aee..0ab33455ed15a8de48990f07bea30d737dd3bd5d 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;