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

Author: Rob Clark <[email protected]>
Date:   Tue Aug 11 11:47:46 2015 -0400

freedreno/ir3: use nir pass to lower const to scalar

Signed-off-by: Rob Clark <[email protected]>

---

 src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c 
b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
index 53faf16..0ab3345 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to