Module: Mesa
Branch: 10.5
Commit: 712466fb53b5f5086159a8bb883adfdf169f4f00
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=712466fb53b5f5086159a8bb883adfdf169f4f00

Author: Dave Airlie <[email protected]>
Date:   Thu Mar 26 09:17:39 2015 +1000

st_glsl_to_tgsi: only do mov copy propagation on temps (v2)

Don't propagate ARRAYs

This should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=89759

v2: just specify arrays so we get input propagation
Signed-off-by: Dave Airlie <[email protected]>
Cc: [email protected]
Reviewed-by: Ilia Mirkin <[email protected]>
(cherry picked from commit 91e3533481d6921c4b46109742d6f67b7f897f86)

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp 
b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index a9ea8c8..7abb85a 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -3668,6 +3668,7 @@ glsl_to_tgsi_visitor::copy_propagate(void)
              inst->dst.index == inst->src[0].index) &&
           !inst->dst.reladdr &&
           !inst->saturate &&
+          inst->src[0].file != PROGRAM_ARRAY &&
           !inst->src[0].reladdr &&
           !inst->src[0].reladdr2 &&
           !inst->src[0].negate) {

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

Reply via email to