st_glsl_to_tgsi: only do mov copy propagation on temps (v2)
authorDave Airlie <airlied@redhat.com>
Wed, 25 Mar 2015 23:17:39 +0000 (09:17 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Mar 2015 02:03:44 +0000 (12:03 +1000)
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@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index efee4b258e5aba9e7fb57f292894f5fe32466e17..b6193269a9da5ad0778e97bc3fc3cdfd24cd531e 100644 (file)
@@ -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) {