diff options
author | Dave Airlie <[email protected]> | 2015-03-26 09:17:39 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-03-26 12:03:44 +1000 |
commit | 91e3533481d6921c4b46109742d6f67b7f897f86 (patch) | |
tree | 011e9cc170c704f6b1f59e7ba920d9f67a583436 /src/mesa/state_tracker | |
parent | ef09cfb51e0c1cc9e3c6f370813a843a6ecaa4e2 (diff) |
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]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index efee4b258e5..b6193269a9d 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) { |