Mesa (master): st_glsl_to_tgsi: only do mov copy propagation on temps (v2)
Dave Airlie
airlied at kemper.freedesktop.org
Thu Mar 26 02:04:33 UTC 2015
Module: Mesa
Branch: master
Commit: 91e3533481d6921c4b46109742d6f67b7f897f86
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91e3533481d6921c4b46109742d6f67b7f897f86
Author: Dave Airlie <airlied at redhat.com>
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 <airlied at redhat.com>
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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 efee4b2..b619326 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -3937,6 +3937,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_ARRAY &&
!inst->src[0].reladdr &&
!inst->src[0].reladdr2 &&
!inst->src[0].negate) {
More information about the mesa-commit
mailing list