[Mesa-dev] [PATCH] st_glsl_to_tgsi: only do mov copy propogation on temps

Dave Airlie airlied at gmail.com
Wed Mar 25 16:18:42 PDT 2015


From: Dave Airlie <airlied at redhat.com>

Don't propoate ARRAY

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

Signed-off-by: Dave Airlie <airlied at redhat.com>
Cc: mesa-stable at lists.freedesktop.org
---
 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 db69a08..829644f 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -3938,6 +3938,7 @@ glsl_to_tgsi_visitor::copy_propagate(void)
              inst->dst[0].index == inst->src[0].index) &&
           !inst->dst[0].reladdr &&
           !inst->saturate &&
+          inst->src[0].file == PROGRAM_TEMPORARY &&
           !inst->src[0].reladdr &&
           !inst->src[0].reladdr2 &&
           !inst->src[0].negate) {
-- 
2.1.0



More information about the mesa-dev mailing list